Fix unread errors when scrolling before the thread has finished loading.

Screw some css meant for Opera, it will move to webkit anyway.
This commit is contained in:
Nicolas Stepien 2013-02-21 23:06:25 +01:00
parent 39a7aa3c81
commit 39564417ba
3 changed files with 9 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -383,7 +383,7 @@ a[href="javascript:;"] {
max-width: 500px;
}
.qphl {
box-shadow: 0 0 0 2px rgba(216, 94, 49, .7);
outline: 2px solid rgba(216, 94, 49, .7);
}
/* File */
@ -422,17 +422,9 @@ a[href="javascript:;"] {
.opContainer.filter-highlight {
box-shadow: inset 5px 0 rgba(255, 0, 0, .5);
}
.opContainer.filter-highlight.qphl {
box-shadow: inset 5px 0 rgba(255, 0, 0, .5),
0 0 0 2px rgba(216, 94, 49, .7);
}
.filter-highlight > .reply {
box-shadow: -5px 0 rgba(255, 0, 0, .5);
}
.filter-highlight > .reply.qphl {
box-shadow: -5px 0 rgba(255, 0, 0, .5),
0 0 0 2px rgba(216, 94, 49, .7);
}
/* Thread & Reply Hiding */
.hide-thread-button,

View File

@ -3285,9 +3285,6 @@ ThreadExcerpt =
Unread =
init: ->
return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Tab Icon']
$.on d, 'ThreadUpdate', @onUpdate
$.on d, 'QRPostSuccessful', @post
$.on d, 'scroll visibilitychange', @read
Thread::callbacks.push
name: 'Unread'
@ -3302,6 +3299,9 @@ Unread =
posts.push post if post.isReply
Unread.addPosts posts
Unread.update()
$.on d, 'ThreadUpdate', @onUpdate
$.on d, 'QRPostSuccessful', @post
$.on d, 'scroll visibilitychange', @read
addPosts: (newPosts) ->
unless d.hidden