mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-07 15:10:59 +02:00
js: code cleanup
This commit is contained in:
parent
38e6aa7704
commit
df1c35f46c
@ -2,6 +2,7 @@ dojo.provide("fox.PrefFeedTree");
|
|||||||
dojo.provide("fox.PrefFeedStore");
|
dojo.provide("fox.PrefFeedStore");
|
||||||
|
|
||||||
dojo.require("lib.CheckBoxTree");
|
dojo.require("lib.CheckBoxTree");
|
||||||
|
dojo.require("dojo.data.ItemFileWriteStore");
|
||||||
|
|
||||||
dojo.declare("fox.PrefFeedStore", dojo.data.ItemFileWriteStore, {
|
dojo.declare("fox.PrefFeedStore", dojo.data.ItemFileWriteStore, {
|
||||||
|
|
||||||
|
6
prefs.js
6
prefs.js
@ -1121,15 +1121,15 @@ function init() {
|
|||||||
dojo.require("fox.PrefFilterTree");
|
dojo.require("fox.PrefFilterTree");
|
||||||
dojo.require("fox.PrefLabelTree");
|
dojo.require("fox.PrefLabelTree");
|
||||||
|
|
||||||
|
dojo.addOnLoad(function() {
|
||||||
loading_set_progress(50);
|
loading_set_progress(50);
|
||||||
|
|
||||||
var query = "?op=rpc&subop=sanityCheck";
|
|
||||||
|
|
||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
parameters: query,
|
parameters: {op: "rpc", subop: "sanityCheck"},
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
backend_sanity_check_callback(transport);
|
backend_sanity_check_callback(transport);
|
||||||
} });
|
} });
|
||||||
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("init", e);
|
exception_error("init", e);
|
||||||
|
@ -279,12 +279,10 @@ function init() {
|
|||||||
if (!genericSanityCheck())
|
if (!genericSanityCheck())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var params = "&ua=" + param_escape(navigator.userAgent);
|
|
||||||
|
|
||||||
loading_set_progress(20);
|
loading_set_progress(20);
|
||||||
|
|
||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
parameters: "backend.php?op=rpc&subop=sanityCheck" + params,
|
parameters: {op: "rpc", subop: "sanityCheck"},
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
backend_sanity_check_callback(transport);
|
backend_sanity_check_callback(transport);
|
||||||
} });
|
} });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user