Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-11 11:43:59 +0300
committerPhil Hughes <me@iamphill.com>2016-04-11 11:43:59 +0300
commit643fe43d78044d200c863f34d05c210c3e45b5ce (patch)
tree3354f5d345dd4454cd99b9869936721d14d9f511 /app/assets/javascripts/gl_dropdown.js.coffee
parent1ca627f7829f4f45802687748da22cef315207a3 (diff)
Addressed feedback
Removed important from css
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js.coffee')
-rw-r--r--app/assets/javascripts/gl_dropdown.js.coffee10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee
index 82a82a27ccf..4be4ab60839 100644
--- a/app/assets/javascripts/gl_dropdown.js.coffee
+++ b/app/assets/javascripts/gl_dropdown.js.coffee
@@ -61,7 +61,7 @@ class GitLabDropdownFilter
if data?
results = data
- if search_text isnt ""
+ if search_text isnt ''
results = fuzzaldrinPlus.filter(data, search_text,
key: @options.keys
)
@@ -139,7 +139,7 @@ class GitLabDropdown
if _.isString(@filterInput)
@filterInput = @getElement(@filterInput)
- search_fields = if @options.search then @options.search.fields else [];
+ searchFields = if @options.search then @options.search.fields else [];
if @options.data
# If data is an array
@@ -163,11 +163,11 @@ class GitLabDropdown
filterInputBlur: @filterInputBlur
remote: @options.filterRemote
query: @options.data
- keys: search_fields
+ keys: searchFields
elements: =>
- selector = ".dropdown-content li:not(.divider)"
+ selector = '.dropdown-content li:not(.divider)'
- if @dropdown.find(".dropdown-toggle-page").length
+ if @dropdown.find('.dropdown-toggle-page').length
selector = ".dropdown-page-one #{selector}"
return $(selector)