summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-19 18:49:06 +0300
committerAndrew Dolgov <[email protected]>2010-11-19 18:49:06 +0300
commitdf1c35f46cbf69cd394197bac71387755d5bd65f (patch)
tree13bd6e08df2fa247bad2ff2c00233adef7aa1da1
parent38e6aa7704b3411735b2ef1706dc9d73ecb65406 (diff)
js: code cleanup
-rw-r--r--PrefFeedTree.js1
-rw-r--r--prefs.js18
-rw-r--r--tt-rss.js4
3 files changed, 11 insertions, 12 deletions
diff --git a/PrefFeedTree.js b/PrefFeedTree.js
index ee3cd152c..27709cdb7 100644
--- a/PrefFeedTree.js
+++ b/PrefFeedTree.js
@@ -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, {
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);
diff --git a/tt-rss.js b/tt-rss.js
index 674623112..69cda7e07 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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);
} });