diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js.coffee | 2 | ||||
-rw-r--r-- | app/assets/javascripts/project.js.coffee | 12 |
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) -> |