mirror of https://github.com/calzoneman/sync.git
setCurrent can wait
This commit is contained in:
parent
f6b02a166a
commit
7d232b80dc
|
@ -749,7 +749,8 @@ Callbacks = {
|
|||
$("#queue").scrollTop(0);
|
||||
var scroll = li.position().top - $("#queue").position().top;
|
||||
$("#queue").scrollTop(scroll);
|
||||
}
|
||||
},
|
||||
can_wait: true
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -980,7 +980,9 @@ function queueAction(data) {
|
|||
if(!("expire" in data))
|
||||
data.expire = Date.now() + 5000;
|
||||
if(!data.fn()) {
|
||||
if(Date.now() < data.expire)
|
||||
if(data.can_wait && Date.now() < data.expire)
|
||||
PL_QUEUED_ACTIONS.push(data);
|
||||
else if(Date.now() < data.expire)
|
||||
PL_QUEUED_ACTIONS.unshift(data);
|
||||
}
|
||||
if(PL_QUEUED_ACTIONS.length == 0) {
|
||||
|
|
Loading…
Reference in New Issue