summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-05-05 14:38:24 +0200
committerczaks <marcin@6irc.net>2016-05-05 15:37:50 +0200
commit02c3c28a16127511a785e428547f8a4dc60abaf7 (patch)
tree8c65784b0e7a999cb1b8c9459d489f00d15a46d8 /js
parent6991ca270eb7ecd879a06971cc9df0334aab7687 (diff)
main.js: a bit more sane code
Diffstat (limited to 'js')
-rw-r--r--js/thread-watcher.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/thread-watcher.js b/js/thread-watcher.js
index 960aa59f..c31a6e74 100644
--- a/js/thread-watcher.js
+++ b/js/thread-watcher.js
@@ -79,8 +79,8 @@ watchlist.add = function(sel) {
} else {
postCount = $(sel).parents('.op').siblings('.post').length+1;
}
- //Grab the reply link.
- var threadLink = $(sel).siblings('a:contains("['+_('Reply')+']")').attr('href');
+ //Grab the reply link.;
+ var threadLink = $(sel).siblings('a:not(.watchThread)').last().attr('href');
//Figure out the thread name. If anon, use the thread id.
if ($(sel).parent().find('.subject').length) {
threadName = $(sel).parent().find('.subject').text().substring(0,20);