summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-22 17:32:06 +0100
committerPhil Hughes <me@iamphill.com>2016-06-22 17:32:06 +0100
commit92c71a426cb931874f591458b9f685681c6e2bd6 (patch)
tree6947c1c9b0dc62b037b752100e480adabfb3309a
parent363f7a5794f3cec96163f5b07cbb9af37f9a7eb6 (diff)
downloadgitlab-ce-92c71a426cb931874f591458b9f685681c6e2bd6.tar.gz
Updated to add parenthesesref-dropdown-jquery-objects
-rw-r--r--app/assets/javascripts/gl_dropdown.js.coffee2
-rw-r--r--app/assets/javascripts/project.js.coffee12
2 files changed, 7 insertions, 7 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee
index 29eed4c9862..deaed6c11e8 100644
--- a/app/assets/javascripts/gl_dropdown.js.coffee
+++ b/app/assets/javascripts/gl_dropdown.js.coffee
@@ -363,7 +363,7 @@ class GitLabDropdown
selector = ".dropdown-page-one .dropdown-content"
$(selector, @dropdown)
.empty()
- .append html
+ .append(html)
# Render the row
renderItem: (data, group = false, index = false) ->
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee
index 707178d1268..3288c801388 100644
--- a/app/assets/javascripts/project.js.coffee
+++ b/app/assets/javascripts/project.js.coffee
@@ -71,17 +71,17 @@ class @Project
renderRow: (ref) ->
if ref.header?
$('<li />')
- .addClass 'dropdown-header'
- .text ref.header
+ .addClass('dropdown-header')
+ .text(ref.header)
else
link = $('<a />')
- .attr 'href', '#'
+ .attr('href', '#')
.addClass(if ref is selected then 'is-active' else '')
- .text ref
- .attr 'data-ref', escape(ref)
+ .text(ref)
+ .attr('data-ref', escape(ref))
$('<li />')
- .append link
+ .append(link)
id: (obj, $el) ->
$el.attr('data-ref')
toggleLabel: (obj, $el) ->