This commit is contained in:
Nicolas Stepien 2013-04-09 09:05:30 +02:00
parent 33d154c8c8
commit fe2f4d4c0a
3 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,4 @@
- Added Cooldown setting back in.
- Fixed the Header going above posts when following quotelinks for example.
- Fixed a bug where dead quotelinks would disappear.

View File

@ -52,6 +52,7 @@ Config =
'Remember Subject': [false, 'Remember the subject field, instead of resetting after posting.']
'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.']
'Hide Original Post Form': [true, 'Hide the normal post form.']
'Cooldown': [true, 'Prevent "flood detected" errors.']
'Quote Links':
'Quote Backlinks': [true, 'Add quote backlinks.']
'OP Backlinks': [true, 'Add backlinks to the OP.']

View File

@ -128,6 +128,7 @@ QR =
cooldown:
init: ->
return unless Conf['Cooldown']
board = g.BOARD.ID
QR.cooldown.types =
thread: switch board
@ -144,6 +145,7 @@ QR =
QR.cooldown.start()
$.sync "cooldown.#{board}", QR.cooldown.sync
start: ->
return unless Conf['Cooldown']
return if QR.cooldown.isCounting
QR.cooldown.isCounting = true
QR.cooldown.count()
@ -154,6 +156,7 @@ QR =
QR.cooldown.cooldowns[id] = cooldowns[id]
QR.cooldown.start()
set: (data) ->
return unless Conf['Cooldown']
{req, post, isReply, delay} = data
start = if req then req.uploadEndTime else Date.now()
if delay