aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2013-03-13 13:36:40 +0000
committerDave Whiteland <dave@mysociety.org>2013-03-13 13:36:40 +0000
commitf93f38c0cd21ecf3e90bd926a67b9e798c80e0d0 (patch)
treed74683d1fad835492655faa4bd3d8093b6cff006
parenteb0c0d42f3596c5dc21e9bcdcc02a4008a541c34 (diff)
check for mm_url before refreshing Message Manager messages (fixes mysociety/message-manager#169)
-rw-r--r--templates/web/fixmybarangay/report/_message_manager.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/fixmybarangay/report/_message_manager.html b/templates/web/fixmybarangay/report/_message_manager.html
index b2537e907..3845feeef 100644
--- a/templates/web/fixmybarangay/report/_message_manager.html
+++ b/templates/web/fixmybarangay/report/_message_manager.html
@@ -73,7 +73,7 @@ $(document).ready(function() {
// call this to push the auto-refresh timeout off so it's only triggered
// if there's no activity for a while
function reset_timeout() {
- if (refresh_period && can_refresh) {
+ if (mm_url && refresh_period && can_refresh) {
if (timeout_id) {
clearTimeout(timeout_id);
}