Remove leftovers of old way of setting cooldown time.
This commit is contained in:
parent
f14caf1d22
commit
a834d0a5f0
@ -665,7 +665,6 @@ QR =
|
||||
onload: ->
|
||||
# Upload done, waiting for server response.
|
||||
QR.req.isUploadFinished = true
|
||||
QR.req.uploadEndTime = Date.now()
|
||||
QR.req.progress = '...'
|
||||
QR.status()
|
||||
onprogress: (e) ->
|
||||
@ -793,7 +792,7 @@ QR =
|
||||
post.rm()
|
||||
QR.captcha.setup(d.activeElement is QR.nodes.status)
|
||||
|
||||
QR.cooldown.add Date.now(), threadID, postID
|
||||
QR.cooldown.add threadID, postID
|
||||
|
||||
URL = if threadID is postID # new thread
|
||||
"#{window.location.origin}/#{g.BOARD}/thread/#{threadID}"
|
||||
|
||||
@ -44,8 +44,9 @@ QR.cooldown =
|
||||
QR.cooldown.data = data or {}
|
||||
QR.cooldown.start()
|
||||
|
||||
add: (start, threadID, postID) ->
|
||||
add: (threadID, postID) ->
|
||||
return unless Conf['Cooldown']
|
||||
start = Date.now()
|
||||
boardID = g.BOARD.ID
|
||||
QR.cooldown.set boardID, start, {threadID, postID}
|
||||
QR.cooldown.set 'global', start, {boardID, threadID, postID} if threadID is postID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user