Merge branch 'v3'

Conflicts:
	src/Quotelinks/QuoteYou.coffee
This commit is contained in:
Zixaphir 2013-08-09 20:33:42 -07:00
commit 70b00a1337
6 changed files with 22 additions and 14 deletions

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3066,7 +3066,9 @@ textarea,
#unread-line { #unread-line {
margin: -1px; margin: -1px;
} }
#qp { border: none !important; } #qp {
border: none !important;
}
#unread-line { #unread-line {
padding: 1px; padding: 1px;
border: 1px solid #111 !important; border: 1px solid #111 !important;

View File

@ -26,7 +26,7 @@
.lit { .lit {
color: #368c72; color: #368c72;
} }
"} else {" " else "
.prettyprint { .prettyprint {
background-color: rgba(0,0,0,.1); background-color: rgba(0,0,0,.1);
border: 1px solid rgba(0,0,0,0.5); border: 1px solid rgba(0,0,0,0.5);

View File

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