summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/js/index.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index b4ce8c78b6..d890784abb 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2147,7 +2147,21 @@ $(document).ready(function () {
elementId = '';
action = 'clear';
}
- updateIssuesMeta(url, action, issueIDs, elementId).then(reload);
+ updateIssuesMeta(url, action, issueIDs, elementId).then(function() {
+ // NOTICE: This reset of checkbox state targets Firefox caching behaviour, as the checkboxes stay checked after reload
+ if (action === "close" || action === "open" ){
+ //uncheck all checkboxes
+ $('.issue-checkbox input[type="checkbox"]').each(function(_,e){ e.checked = false; });
+ }
+ reload();
+ });
+ });
+
+ // NOTICE: This event trigger targets Firefox caching behaviour, as the checkboxes stay checked after reload
+ // trigger ckecked event, if checkboxes are checked on load
+ $('.issue-checkbox input[type="checkbox"]:checked').first().each(function(_,e) {
+ e.checked = false;
+ $(e).click();
});
buttonsClickOnEnter();