js: code cleanup

This commit is contained in:
Andrew Dolgov 2010-11-19 18:49:06 +03:00
parent 38e6aa7704
commit df1c35f46c
3 changed files with 11 additions and 12 deletions

View File

@ -2,6 +2,7 @@ dojo.provide("fox.PrefFeedTree");
dojo.provide("fox.PrefFeedStore");
dojo.require("lib.CheckBoxTree");
dojo.require("dojo.data.ItemFileWriteStore");
dojo.declare("fox.PrefFeedStore", dojo.data.ItemFileWriteStore, {

View File

@ -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);
dojo.addOnLoad(function() {
loading_set_progress(50);
var query = "?op=rpc&subop=sanityCheck";
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);

View File

@ -279,12 +279,10 @@ function init() {
if (!genericSanityCheck())
return;
var params = "&ua=" + param_escape(navigator.userAgent);
loading_set_progress(20);
new Ajax.Request("backend.php", {
parameters: "backend.php?op=rpc&subop=sanityCheck" + params,
parameters: {op: "rpc", subop: "sanityCheck"},
onComplete: function(transport) {
backend_sanity_check_callback(transport);
} });