That's simpler.
This commit is contained in:
parent
384a95163d
commit
1c71b4109d
@ -5849,7 +5849,7 @@
|
|||||||
},
|
},
|
||||||
set: function(data) {
|
set: function(data) {
|
||||||
var cooldown, hasFile, isReply, isSage, start, type;
|
var cooldown, hasFile, isReply, isSage, start, type;
|
||||||
start = data.req ? data.req.uploadEndTime : Date.now();
|
start = data.start || Date.now();
|
||||||
if (data.delay) {
|
if (data.delay) {
|
||||||
cooldown = {
|
cooldown = {
|
||||||
delay: data.delay
|
delay: data.delay
|
||||||
@ -6686,7 +6686,7 @@
|
|||||||
postID: postID
|
postID: postID
|
||||||
}, QR.nodes.el);
|
}, QR.nodes.el);
|
||||||
QR.cooldown.set({
|
QR.cooldown.set({
|
||||||
req: req,
|
start: req.uploadEndTime,
|
||||||
post: reply,
|
post: reply,
|
||||||
isReply: !!threadID
|
isReply: !!threadID
|
||||||
});
|
});
|
||||||
|
|||||||
@ -159,10 +159,7 @@ QR =
|
|||||||
QR.cooldown.cooldowns[id] = cooldowns[id]
|
QR.cooldown.cooldowns[id] = cooldowns[id]
|
||||||
QR.cooldown.start()
|
QR.cooldown.start()
|
||||||
set: (data) ->
|
set: (data) ->
|
||||||
start = if data.req
|
start = data.start or Date.now()
|
||||||
data.req.uploadEndTime
|
|
||||||
else
|
|
||||||
Date.now()
|
|
||||||
if data.delay
|
if data.delay
|
||||||
cooldown = delay: data.delay
|
cooldown = delay: data.delay
|
||||||
else
|
else
|
||||||
@ -916,7 +913,7 @@ QR =
|
|||||||
}, QR.nodes.el
|
}, QR.nodes.el
|
||||||
|
|
||||||
QR.cooldown.set
|
QR.cooldown.set
|
||||||
req: req
|
start: req.uploadEndTime
|
||||||
post: reply
|
post: reply
|
||||||
isReply: !!threadID
|
isReply: !!threadID
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user