]> git.wh0rd.org Git - tt-rss.git/commitdiff
digest: placeholder sanity check on init
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 13 Sep 2010 11:08:34 +0000 (15:08 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 13 Sep 2010 11:08:34 +0000 (15:08 +0400)
digest.js

index 0b5a3f66ab008f99515bfc4fed8a24468d38d52a..d6dc41e8a02dab5aa5de96e1ef526bee358f8d33 100644 (file)
--- 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);
        }