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

Updated to add parentheses

parent 363f7a57
......@@ -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) ->
......
......@@ -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) ->
......
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