diff options
| author | czaks <marcin@6irc.net> | 2016-05-05 14:38:24 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 15:37:50 +0200 |
| commit | 02c3c28a16127511a785e428547f8a4dc60abaf7 (patch) | |
| tree | 8c65784b0e7a999cb1b8c9459d489f00d15a46d8 /js | |
| parent | 6991ca270eb7ecd879a06971cc9df0334aab7687 (diff) | |
main.js: a bit more sane code
Diffstat (limited to 'js')
| -rw-r--r-- | js/thread-watcher.js | 4 |
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); |
