More oops

This commit is contained in:
Zixaphir 2013-08-09 20:19:08 -07:00
parent 10a2a96a96
commit 1470c0e563
4 changed files with 12 additions and 8 deletions

View File

@ -3487,7 +3487,7 @@
textContent: 'Show thread',
href: 'javascript:;'
});
$.on(show, 'click', ThreadHiding.menu.show);
$.on(div, 'click', ThreadHiding.menu.show);
$.event('AddMenuEntry', {
type: 'post'
});
@ -4223,12 +4223,14 @@
},
cb: {
seek: function(type) {
var post, posts, result, str;
var highlight, post, posts, result, str;
if (!(Conf['Mark Quotes of You'] && Conf['Quick Reply'])) {
return;
}
$.rmClass($('.highlight'), 'highlight');
if (highlight = $('.highlight')) {
$.rmClass(highlight, 'highlight');
}
if (!QuoteYou.lastRead) {
if (!(post = QuoteYou.lastRead = $('.quotesYou'))) {
new Notification('warning', 'No posts are currently quoting you, loser.', 20);

View File

@ -3492,7 +3492,7 @@
textContent: 'Show thread',
href: 'javascript:;'
});
$.on(show, 'click', ThreadHiding.menu.show);
$.on(div, 'click', ThreadHiding.menu.show);
$.event('AddMenuEntry', {
type: 'post'
});
@ -4228,12 +4228,14 @@
},
cb: {
seek: function(type) {
var post, posts, result, str;
var highlight, post, posts, result, str;
if (!(Conf['Mark Quotes of You'] && Conf['Quick Reply'])) {
return;
}
$.rmClass($('.highlight'), 'highlight');
if (highlight = $('.highlight')) {
$.rmClass(highlight, 'highlight');
}
if (!QuoteYou.lastRead) {
if (!(post = QuoteYou.lastRead = $('.quotesYou'))) {
new Notification('warning', 'No posts are currently quoting you, loser.', 20);

View File

@ -86,7 +86,7 @@ ThreadHiding =
className: 'show-thread-link'
textContent: 'Show thread'
href: 'javascript:;'
$.on show, 'click', ThreadHiding.menu.show
$.on div, 'click', ThreadHiding.menu.show
$.event 'AddMenuEntry',
type: 'post'

View File

@ -34,7 +34,7 @@ QuoteYou =
cb:
seek: (type) ->
return unless Conf['Mark Quotes of You'] and Conf['Quick Reply']
$.rmClass $('.highlight'), 'highlight'
$.rmClass highlight, 'highlight' if highlight = $ '.highlight'
unless QuoteYou.lastRead
unless post = QuoteYou.lastRead = $ '.quotesYou'