Don't start the post cooldown on thread creation. Close #230

This commit is contained in:
Nicolas Stepien 2011-08-23 06:19:47 +02:00
parent fbdc956a9f
commit 41ad2541dd
2 changed files with 4 additions and 2 deletions

View File

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

View File

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