From: Andrew Dolgov Date: Mon, 13 Sep 2010 11:08:34 +0000 (+0400) Subject: digest: placeholder sanity check on init X-Git-Tag: 1.5.0~435^2~1^2~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5328c7d7f173722af5a9d476d9448667b360f67b;p=tt-rss.git digest: placeholder sanity check on init --- diff --git a/digest.js b/digest.js index 0b5a3f66..d6dc41e8 100644 --- a/digest.js +++ b/digest.js @@ -577,7 +577,7 @@ function parse_headlines(transport, replace, no_effects) { } } -function init() { +function init_second_stage() { try { new Ajax.Request("backend.php", { parameters: "backend.php?op=rpc&subop=digest-init", @@ -587,6 +587,29 @@ function init() { _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) { exception_error("digest_init", e); }