Added cooldown sanity check -- properly.
This commit is contained in:
parent
8313c05195
commit
6ba2905141
@ -1096,7 +1096,7 @@ cooldown =
|
||||
|
||||
start: ->
|
||||
cooldown.duration = Math.ceil ($.get(g.BOARD+'/cooldown', 0) - Date.now()) / 1000
|
||||
return unless cooldown.duration > 0
|
||||
return unless 60 >= cooldown.duration > 0
|
||||
for submit in $$ '#com_submit'
|
||||
submit.value = cooldown.duration
|
||||
submit.disabled = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user