diff options
author | Cherrg <michael@gnehr.de> | 2019-07-12 22:16:23 +0200 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-07-12 21:16:23 +0100 |
commit | a23e19226a14b36fc25e8b392f08e19c46d9d8b6 (patch) | |
tree | 6f237d590d2d9c137990fe9ff6a21522b0948d44 /public | |
parent | 0018d5603e3d46ed4cd53ed1502f9116dffadc23 (diff) | |
download | gitea-a23e19226a14b36fc25e8b392f08e19c46d9d8b6.tar.gz gitea-a23e19226a14b36fc25e8b392f08e19c46d9d8b6.zip |
fix/define autochecked checkboxes on issue list in firefox (#7320)
* fix/define autochecked checkboxes on issue list on firefox
- close: deselect all
- nonclose: show buttons for close/label/milestone...
fix #7311
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* remove unnessesary timeouts
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* add comments in code - this is targeting firefox
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 16 |
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(); |