Fixes as reported by @ccd0.

This commit is contained in:
Mayhem 2014-06-19 15:17:19 +02:00
parent 41c22af15f
commit dcc92a97a4
3 changed files with 4 additions and 2 deletions

View File

@ -107,6 +107,7 @@ ThreadUpdater =
ThreadUpdater.thread.kill()
$.event 'ThreadUpdate',
404: true
threadID: ThreadUpdater.thread.fullID
else
ThreadUpdater.outdateCount++
ThreadUpdater.setInterval()

View File

@ -81,9 +81,10 @@ ThreadWatcher =
ThreadWatcher.db.set {boardID, threadID, val: data}
ThreadWatcher.refresh()
onThreadRefresh: (e) ->
thread = g.threads[e.detail.threadID]
return unless e.detail[404] and ThreadWatcher.db.get {boardID: thread.board.ID, threadID: thread.ID}
# Update 404 status.
ThreadWatcher.add g.threads[e.detail.threadID]
ThreadWatcher.add thread
fetchCount:
fetched: 0

View File

@ -379,7 +379,7 @@ QR =
# Create a custom event when the QR dialog is first initialized.
# Use it to extend the QR's functionalities, or for XTRM RICE.
$.event 'QRDialogCreation'
$.event 'QRDialogCreation', null, dialog
submit: (e) ->
e?.preventDefault()