diff options
author | Adam Young <ayoung@redhat.com> | 2010-08-06 10:01:44 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-08-06 11:55:38 -0400 |
commit | 125bd09faf21411fafda01e76989b4856bbd267c (patch) | |
tree | b9e2ad70165154f95463f6a69dc5d62de5821f87 /install/static/pageparams.js | |
parent | a63fd83e890ed4f2ec3f0cd0f96f0a329698796a (diff) | |
download | freeipa.git-125bd09faf21411fafda01e76989b4856bbd267c.tar.gz freeipa.git-125bd09faf21411fafda01e76989b4856bbd267c.tar.xz freeipa.git-125bd09faf21411fafda01e76989b4856bbd267c.zip |
The Javascript code for the new web UI
Now with whitespace cleanup.
Diffstat (limited to 'install/static/pageparams.js')
-rw-r--r-- | install/static/pageparams.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/install/static/pageparams.js b/install/static/pageparams.js new file mode 100644 index 00000000..62307def --- /dev/null +++ b/install/static/pageparams.js @@ -0,0 +1,15 @@ +function getPageParams(){ + var qsParm = new Array(); + var query = window.location.search.substring(1); + var parms = query.split("&"); + for (var i=0; i<parms.length; i++) { + var pos = parms[i].indexOf('='); + if (pos > 0) { + var key = parms[i].substring(0,pos); + var val = parms[i].substring(pos+1); + qsParm[key] = val; + } + } + return qsParm; +} + |