]> git.0d.be Git - panikweb.git/commitdiff
cancel party autoreload mode when leaving the party page
authorFrédéric Péters <fpeters@0d.be>
Sat, 2 Nov 2013 21:27:34 +0000 (22:27 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sat, 2 Nov 2013 21:27:34 +0000 (22:27 +0100)
panikweb_templates/templates/party.html

index 370cba278230f8e301dd1e0f516fb6a4385a7372..dd6097ffd28f5253535eb8d9da3c47a1cd9c8a61 100644 (file)
@@ -8,7 +8,12 @@
 
 {% block extrascripts %}
 <script>
+var timer = null;
 function reload() {
+  if (location.href.indexOf('/party') == -1) {
+    clearInterval(timer);
+    return;
+  }
   if (location.href.indexOf('?') == -1) {
     href = location.href;
   } else {