summaryrefslogtreecommitdiff
path: root/digest.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-09-13 15:08:34 +0400
committerAndrew Dolgov <[email protected]>2010-09-13 15:08:34 +0400
commit5328c7d7f173722af5a9d476d9448667b360f67b (patch)
treeace4861a272330ad22db3e59349a0c3e1b7122be /digest.js
parent35f4f767141ea37c97f2bb89a6bb59f0b07fdaa0 (diff)
digest: placeholder sanity check on init
Diffstat (limited to 'digest.js')
-rw-r--r--digest.js25
1 files changed, 24 insertions, 1 deletions
diff --git a/digest.js b/digest.js
index 0b5a3f66a..d6dc41e8a 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",
@@ -588,6 +588,29 @@ function init() {
} });
} 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);
}
}