silly, add option for DONT_POLL

This commit is contained in:
Sanj 2011-10-21 01:51:57 +01:00
parent 558b3024f2
commit fa52e53956

View File

@ -22,8 +22,9 @@ function delayedRecursion(time) {
POLLER = setTimeout(startPoller, time);
}
DONT_POLL = false;
function startPoller() {
if (DONT_POLL == true) { return; }
// console.log("poller called");
$.getJSON("/edit/poll_changes/", {
'article_id': ARTICLE_ID,