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 '.'
|
[boardID, threadID] = @parentNode.dataset.fullID.split '.'
|
||||||
ThreadWatcher.rm boardID, +threadID
|
ThreadWatcher.rm boardID, +threadID
|
||||||
post: (e) ->
|
post: (e) ->
|
||||||
{board, postID, threadID} = e.detail
|
{boardID, threadID, postID} = e.detail
|
||||||
if postID is threadID
|
if postID is threadID
|
||||||
if Conf['Auto Watch']
|
if Conf['Auto Watch']
|
||||||
$.set 'AutoWatch', threadID
|
$.set 'AutoWatch', threadID
|
||||||
else if Conf['Auto Watch Reply']
|
else if Conf['Auto Watch Reply']
|
||||||
ThreadWatcher.add g.boards[board.ID].threads[threadID]
|
ThreadWatcher.add g.threads[boardID + '.' + threadID]
|
||||||
onIndexRefresh: ->
|
onIndexRefresh: ->
|
||||||
{db} = ThreadWatcher
|
{db} = ThreadWatcher
|
||||||
boardID = g.BOARD.ID
|
boardID = g.BOARD.ID
|
||||||
|
|||||||
@ -782,11 +782,11 @@ QR =
|
|||||||
|
|
||||||
# Post/upload confirmed as successful.
|
# Post/upload confirmed as successful.
|
||||||
$.event 'QRPostSuccessful', {
|
$.event 'QRPostSuccessful', {
|
||||||
board: {ID: g.BOARD.ID}
|
boardID: g.BOARD.ID
|
||||||
threadID
|
threadID
|
||||||
postID
|
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.
|
# Enable auto-posting if we have stuff left to post, disable it otherwise.
|
||||||
postsCount = QR.posts.length - 1
|
postsCount = QR.posts.length - 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user