From ff8b99f9397ad24a6e1c9f8aa898940b2cf11534 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Fri, 16 Jun 2017 22:46:47 +0500 Subject: [PATCH] fix storing of ID of updateQueryModal() interval calls --- js/interface_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/interface_common.js b/js/interface_common.js index c15f353..329ebe9 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -611,12 +611,12 @@ function setupQueryModalUpdating(postboard, query, resource) { // then we may possibly collect more posts on our second try by waiting more. req.timeoutArgs = [10000, 2000, 3]; - postboard.attr('data-request-interval', setInterval(updateQueryModal, 5000, req)); // FIXME + req.interval = setInterval(updateQueryModal, 5000, req); } function updateQueryModal(req) { if (!isModalWithElemExists(req.postboard)) { - clearInterval(req.postboard.attr('data-request-interval')); + clearInterval(req.interval); clearQueryProcessed(req.id); return; }