diff options
author | Dave Whiteland <dave@mysociety.org> | 2013-03-13 13:36:40 +0000 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2013-03-13 13:36:40 +0000 |
commit | f93f38c0cd21ecf3e90bd926a67b9e798c80e0d0 (patch) | |
tree | d74683d1fad835492655faa4bd3d8093b6cff006 /templates | |
parent | eb0c0d42f3596c5dc21e9bcdcc02a4008a541c34 (diff) |
check for mm_url before refreshing Message Manager messages (fixes mysociety/message-manager#169)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/fixmybarangay/report/_message_manager.html | 2 |
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); } |