Remove leftovers of old way of setting cooldown time.

This commit is contained in:
ccd0 2015-08-08 20:36:33 -07:00
parent f14caf1d22
commit a834d0a5f0
2 changed files with 3 additions and 3 deletions

View File

@ -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}"

View File

@ -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