mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 22:11:30 +00:00
digest: placeholder sanity check on init
This commit is contained in:
25
digest.js
25
digest.js
@@ -577,7 +577,7 @@ function parse_headlines(transport, replace, no_effects) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init_second_stage() {
|
||||||
try {
|
try {
|
||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
parameters: "backend.php?op=rpc&subop=digest-init",
|
parameters: "backend.php?op=rpc&subop=digest-init",
|
||||||
@@ -587,6 +587,29 @@ function init() {
|
|||||||
_update_timeout = window.setTimeout('update()', 5*1000);
|
_update_timeout = window.setTimeout('update()', 5*1000);
|
||||||
} });
|
} });
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("init_second_stage", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function sanity_check(transport) {
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("sanity_check", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
try {
|
||||||
|
|
||||||
|
new Ajax.Request("backend.php", {
|
||||||
|
parameters: "?op=rpc&subop=sanityCheck",
|
||||||
|
onComplete: function(transport) {
|
||||||
|
sanity_check(transport);
|
||||||
|
} });
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("digest_init", e);
|
exception_error("digest_init", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user