]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1575805 - Manually expanded section will be collapsed again after visiting a...
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 28 Aug 2019 21:52:46 +0000 (17:52 -0400)
committerGitHub <noreply@github.com>
Wed, 28 Aug 2019 21:52:46 +0000 (17:52 -0400)
extensions/BugModal/web/bug_modal.js

index eedb8bbe5dbe9ebb2882d2b8c7ac7d3f7f8009ca..b9a6d38bfb6ef7c216cc0ca4f3548955610a6039 100644 (file)
@@ -20,7 +20,7 @@ function slide_module(module, action, fast) {
             'aria-expanded': is_visible,
             'aria-label': is_visible ? latch.data('label-expanded') : latch.data('label-collapsed'),
         });
-        if (BUGZILLA.user.settings.remember_collapsed)
+        if (BUGZILLA.user.settings.remember_collapsed && module.is(':visible'))
             localStorage.setItem(module.attr('id') + '.visibility', is_visible ? 'show' : 'hide');
     }