diff options
Diffstat (limited to 'public/js/index.js')
-rw-r--r-- | public/js/index.js | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/public/js/index.js b/public/js/index.js index 7c4b177505..9104bf6400 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1531,11 +1531,11 @@ $(document).ready(function () { $('.issue-checkbox').click(function() { var numChecked = $('.issue-checkbox').children('input:checked').length; if (numChecked > 0) { - $('.issue-filters').hide(); - $('.issue-actions').show(); + $('#issue-filters').hide(); + $('#issue-actions').show(); } else { - $('.issue-filters').show(); - $('.issue-actions').hide(); + $('#issue-filters').show(); + $('#issue-actions').hide(); } }); @@ -1568,6 +1568,7 @@ $(document).ready(function () { initVueApp(); initTeamSettings(); initCtrlEnterSubmit(); + initNavbarContentToggle(); // Repo clone url. if ($('#repo-clone-url').length > 0) { @@ -2076,3 +2077,20 @@ function initFilterBranchTagDropdown(selector) { $(".commit-button").click(function() { $(this).parent().find('.commit-body').toggle(); }); + +function initNavbarContentToggle() { + var content = $('#navbar'); + var toggle = $('#navbar-expand-toggle'); + var isExpanded = false; + toggle.click(function() { + isExpanded = !isExpanded; + if (isExpanded) { + content.addClass('shown'); + toggle.addClass('active'); + } + else { + content.removeClass('shown'); + toggle.removeClass('active'); + } + }); +} |