follow Mayhem's changes to QRPostSuccessful and QRPostSuccessful_
This commit is contained in:
parent
63a9d3dcd1
commit
f52a625a2a
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user