aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-25 21:34:24 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-25 21:34:24 +0200
commit6e777538c411bb4abc730983c60002c330da5dab (patch)
tree307d2110984cdbdeda99fb61b8b21df624fda54a /web/js/nms.js
parent78e32778d51f9aa8c98e48e472b6b5a31031a7b7 (diff)
front: Fix switch viewing in public and tvmode-init
Fixes #76
Diffstat (limited to 'web/js/nms.js')
-rw-r--r--web/js/nms.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/js/nms.js b/web/js/nms.js
index d4c3488..5602357 100644
--- a/web/js/nms.js
+++ b/web/js/nms.js
@@ -399,8 +399,10 @@ nms.tvmode.tick = function() {
nms.tvmode.currentIndex++;
}
nms.tvmode.stop = function() {
- nms.timers.tvmode.stop();
- nms.tvmode.active = false;
+ if (nms.tvmode.active) {
+ nms.timers.tvmode.stop();
+ nms.tvmode.active = false;
+ }
}
function ensureAnchorHas(view) {