From fa52e5395682e370ddf2b3105a5aef8d21d295d3 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 21 Oct 2011 01:51:57 +0100 Subject: [PATCH] silly, add option for DONT_POLL --- edgware/static/js/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edgware/static/js/editor.js b/edgware/static/js/editor.js index 17aeeb3..de51fdf 100644 --- a/edgware/static/js/editor.js +++ b/edgware/static/js/editor.js @@ -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,