Commit 92c71a42 authored by Phil Hughes's avatar Phil Hughes

Updated to add parentheses

parent 363f7a57
...@@ -363,7 +363,7 @@ class GitLabDropdown ...@@ -363,7 +363,7 @@ class GitLabDropdown
selector = ".dropdown-page-one .dropdown-content" selector = ".dropdown-page-one .dropdown-content"
$(selector, @dropdown) $(selector, @dropdown)
.empty() .empty()
.append html .append(html)
# Render the row # Render the row
renderItem: (data, group = false, index = false) -> renderItem: (data, group = false, index = false) ->
......
...@@ -71,17 +71,17 @@ class @Project ...@@ -71,17 +71,17 @@ class @Project
renderRow: (ref) -> renderRow: (ref) ->
if ref.header? if ref.header?
$('<li />') $('<li />')
.addClass 'dropdown-header' .addClass('dropdown-header')
.text ref.header .text(ref.header)
else else
link = $('<a />') link = $('<a />')
.attr 'href', '#' .attr('href', '#')
.addClass(if ref is selected then 'is-active' else '') .addClass(if ref is selected then 'is-active' else '')
.text ref .text(ref)
.attr 'data-ref', escape(ref) .attr('data-ref', escape(ref))
$('<li />') $('<li />')
.append link .append(link)
id: (obj, $el) -> id: (obj, $el) ->
$el.attr('data-ref') $el.attr('data-ref')
toggleLabel: (obj, $el) -> toggleLabel: (obj, $el) ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment