diff options
| author | 8chan <admin@8chan.co> | 2014-11-08 16:58:02 -0800 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 13:01:00 +0200 |
| commit | fd2e9df30cfd14b6c03d109c02e48ec966101aa1 (patch) | |
| tree | 3298b91988a457708640bfc6a782e71b7f01b51e | |
| parent | 01446aad124291f88d5fab8f400321307dffebe7 (diff) | |
This script was breaking boards.html
| -rw-r--r-- | js/thread-watcher.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/thread-watcher.js b/js/thread-watcher.js index 625e95e0..b66dc657 100644 --- a/js/thread-watcher.js +++ b/js/thread-watcher.js @@ -142,6 +142,10 @@ watchlist.exists = function(sel) { }; $(document).ready(function(){ + if (!(active_page == 'thread' || active_page == 'index')) { + return; + } + //Append the watchlist toggle button. $('.boardlist').append('<span>[ <a id="watchlist-toggle">watchlist</a> ]</span>'); //Append a watch thread button after every OP. |
