wip javascript

This commit is contained in:
John Woodlock
2012-07-05 18:03:45 +10:00
parent 06a1254abd
commit 581611d7d2
3 changed files with 27 additions and 12 deletions
+18
View File
@@ -1,3 +1,21 @@
QueryParameters = (function()
{
var result = {};
if (window.location.search)
{
// split up the query string and store in an associative array
var params = window.location.search.slice(1).split("&");
for (var i = 0; i < params.length; i++)
{
var tmp = params[i].split("=");
result[tmp[0]] = unescape(tmp[1]);
}
}
return result;
}());
saveSuccessFunctionReloadClient = function(data, textStatus, jqXHR) {
$("#dialog-form").dialog("close");