Don't start the post cooldown on thread creation. Close #230
This commit is contained in:
parent
fbdc956a9f
commit
41ad2541dd
@ -1183,7 +1183,9 @@
|
||||
return cooldown.start();
|
||||
}
|
||||
});
|
||||
return $('.postarea form').action += '?cooldown';
|
||||
if (g.REPLY) {
|
||||
return $('.postarea form').action += '?cooldown';
|
||||
}
|
||||
},
|
||||
start: function() {
|
||||
var submit, _i, _len, _ref;
|
||||
|
||||
@ -938,7 +938,7 @@ cooldown =
|
||||
$.set g.BOARD+'/cooldown', time if $.get(g.BOARD+'/cooldown', 0) < time
|
||||
cooldown.start() if Date.now() < $.get g.BOARD+'/cooldown', 0
|
||||
$.bind window, 'storage', (e) -> cooldown.start() if e.key is "#{NAMESPACE}#{g.BOARD}/cooldown"
|
||||
$('.postarea form').action += '?cooldown'
|
||||
$('.postarea form').action += '?cooldown' if g.REPLY
|
||||
|
||||
start: ->
|
||||
cooldown.duration = Math.ceil ($.get(g.BOARD+'/cooldown', 0) - Date.now()) / 1000
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user