mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 13:31:14 +00:00
fix storing of ID of updateQueryModal() interval calls
This commit is contained in:
parent
e406822f17
commit
ff8b99f939
@ -611,12 +611,12 @@ function setupQueryModalUpdating(postboard, query, resource) {
|
|||||||
// then we may possibly collect more posts on our second try by waiting more.
|
// then we may possibly collect more posts on our second try by waiting more.
|
||||||
req.timeoutArgs = [10000, 2000, 3];
|
req.timeoutArgs = [10000, 2000, 3];
|
||||||
|
|
||||||
postboard.attr('data-request-interval', setInterval(updateQueryModal, 5000, req)); // FIXME
|
req.interval = setInterval(updateQueryModal, 5000, req);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateQueryModal(req) {
|
function updateQueryModal(req) {
|
||||||
if (!isModalWithElemExists(req.postboard)) {
|
if (!isModalWithElemExists(req.postboard)) {
|
||||||
clearInterval(req.postboard.attr('data-request-interval'));
|
clearInterval(req.interval);
|
||||||
clearQueryProcessed(req.id);
|
clearQueryProcessed(req.id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user