Close #1117.
This commit is contained in:
parent
5abb67edcb
commit
05baad8b2e
@ -31,7 +31,7 @@ DeleteLink =
|
|||||||
el: div
|
el: div
|
||||||
order: 40
|
order: 40
|
||||||
open: (post) ->
|
open: (post) ->
|
||||||
return false if post.isDead
|
return false if post.isDead or post.board.ID is 'q'
|
||||||
DeleteLink.post = post
|
DeleteLink.post = post
|
||||||
node = div.firstChild
|
node = div.firstChild
|
||||||
node.textContent = 'Delete'
|
node.textContent = 'Delete'
|
||||||
@ -86,10 +86,7 @@ DeleteLink =
|
|||||||
delete DeleteLink.cooldown.counting
|
delete DeleteLink.cooldown.counting
|
||||||
return
|
return
|
||||||
DeleteLink.cooldown.counting = post
|
DeleteLink.cooldown.counting = post
|
||||||
length = if post.board.ID is 'q'
|
length = 30
|
||||||
600
|
|
||||||
else
|
|
||||||
30
|
|
||||||
seconds = Math.ceil (length * $.SECOND - (Date.now() - post.info.date)) / $.SECOND
|
seconds = Math.ceil (length * $.SECOND - (Date.now() - post.info.date)) / $.SECOND
|
||||||
DeleteLink.cooldown.count post, seconds, length, node
|
DeleteLink.cooldown.count post, seconds, length, node
|
||||||
count: (post, seconds, length, node) ->
|
count: (post, seconds, length, node) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user