]> git.wh0rd.org Git - tt-rss.git/commitdiff
js: code cleanup
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 15:49:06 +0000 (18:49 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 15:49:06 +0000 (18:49 +0300)
PrefFeedTree.js
prefs.js
tt-rss.js

index ee3cd152c5921d5a2dfd0e75ebccf3fd90b0677a..27709cdb7028348df4055366d40edea6f81194cd 100644 (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, {
        
index 5d9107f97fc08c56a39fc10e81bec87a1e724b1c..bcfd40603f523713ab5fbd9c247a3c807044f61e 100644 (file)
--- 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);
index 674623112913131b5eca0056759ab22255955c9e..69cda7e0787ea166fdd70852603c8a367a7906cd 100644 (file)
--- 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);
                                } });