From df1c35f46cbf69cd394197bac71387755d5bd65f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Nov 2010 18:49:06 +0300 Subject: js: code cleanup --- prefs.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'prefs.js') diff --git a/prefs.js b/prefs.js index 5d9107f97..bcfd40603 100644 --- a/prefs.js +++ b/prefs.js @@ -1111,7 +1111,7 @@ function init() { dojo.require("dijit.tree.dndSource"); dojo.require("dijit.InlineEditBox"); dojo.require("dijit.ColorPalette"); - dojo.require("dijit.ProgressBar"); + dojo.require("dijit.ProgressBar"); dojo.registerModulePath("lib", ".."); dojo.registerModulePath("fox", "../.."); @@ -1121,15 +1121,15 @@ function init() { dojo.require("fox.PrefFilterTree"); dojo.require("fox.PrefLabelTree"); - loading_set_progress(50); - - var query = "?op=rpc&subop=sanityCheck"; + dojo.addOnLoad(function() { + loading_set_progress(50); - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function(transport) { - backend_sanity_check_callback(transport); - } }); + new Ajax.Request("backend.php", { + parameters: {op: "rpc", subop: "sanityCheck"}, + onComplete: function(transport) { + backend_sanity_check_callback(transport); + } }); + }); } catch (e) { exception_error("init", e); -- cgit v1.2.3