follow Mayhem's changes to QRPostSuccessful and QRPostSuccessful_

This commit is contained in:
ccd0 2014-06-18 23:43:20 -07:00
parent 63a9d3dcd1
commit f52a625a2a
2 changed files with 4 additions and 4 deletions

View File

@ -87,12 +87,12 @@ ThreadWatcher =
[boardID, threadID] = @parentNode.dataset.fullID.split '.'
ThreadWatcher.rm boardID, +threadID
post: (e) ->
{board, postID, threadID} = e.detail
{boardID, threadID, postID} = e.detail
if postID is threadID
if Conf['Auto Watch']
$.set 'AutoWatch', threadID
else if Conf['Auto Watch Reply']
ThreadWatcher.add g.boards[board.ID].threads[threadID]
ThreadWatcher.add g.threads[boardID + '.' + threadID]
onIndexRefresh: ->
{db} = ThreadWatcher
boardID = g.BOARD.ID

View File

@ -782,11 +782,11 @@ QR =
# Post/upload confirmed as successful.
$.event 'QRPostSuccessful', {
board: {ID: g.BOARD.ID}
boardID: g.BOARD.ID
threadID
postID
}
$.event 'QRPostSuccessful_', {threadID, postID}
$.event 'QRPostSuccessful_', {boardID: g.BOARD.ID, threadID, postID}
# Enable auto-posting if we have stuff left to post, disable it otherwise.
postsCount = QR.posts.length - 1