diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-28 13:54:51 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-03 19:03:49 +0300 |
commit | 30777178e3311c8aa7f4ecae82bd970fda63d85c (patch) | |
tree | 27fd276d1c9ccdd6ba5ec3928352f9d092fb487d /app/assets/javascripts/gl_dropdown.js | |
parent | b507682d6e799f737c05f27201dc4a0dbe3aba1d (diff) |
fixed jumping when bar gets stuck
added specs to sticky util file
added `No files found.` text when results are empty
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js index 85d720c3a69..73874363c1f 100644 --- a/app/assets/javascripts/gl_dropdown.js +++ b/app/assets/javascripts/gl_dropdown.js @@ -114,7 +114,7 @@ GitLabDropdownFilter = (function() { } else { elements = this.options.elements(); if (search_text) { - return elements.each(function() { + elements.each(function() { var $el, matches; $el = $(this); matches = fuzzaldrinPlus.match($el.text().trim(), search_text); @@ -127,8 +127,10 @@ GitLabDropdownFilter = (function() { } }); } else { - return elements.show().removeClass('option-hidden'); + elements.show().removeClass('option-hidden'); } + + elements.parent().find('.dropdown-menu-empty-link').toggleClass('hidden', elements.is(':visible')); } }; |