Commit 5c7181b5 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Add is-link attribute to know if a menu item should not be stopped

parent 9a99fccb
...@@ -247,7 +247,7 @@ class GitLabDropdown ...@@ -247,7 +247,7 @@ class GitLabDropdown
if @options.multiSelect if @options.multiSelect
$target = $(e.target) $target = $(e.target)
if not $target.hasClass('dropdown-menu-close') and not $target.hasClass('dropdown-menu-close-icon') and ($target.attr('href') is '#') if not $target.hasClass('dropdown-menu-close') and not $target.hasClass('dropdown-menu-close-icon') and not $target.data('is-link')
e.stopPropagation() e.stopPropagation()
return false return false
else else
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
%a.dropdown-toggle-page{href: "#"} %a.dropdown-toggle-page{href: "#"}
Create new Create new
%li %li
= link_to namespace_project_labels_path(@project.namespace, @project) do = link_to namespace_project_labels_path(@project.namespace, @project), :"data-is-link" => true do
- if can? current_user, :admin_label, @project - if can? current_user, :admin_label, @project
Manage labels Manage labels
- else - else
......
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