main.js: a bit more sane code
This commit is contained in:
1 parent
6991ca270e
commit
02c3c28a16
6 files changed
+16
-14
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user