diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-19 08:29:57 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-07-19 08:29:57 +0100 |
commit | 5d7b2bd44e08414addde7eb700e5ccf21f59f94c (patch) | |
tree | ca2c906040c07e12e5928899bb0611b07ef32045 /app/assets/javascripts | |
parent | 1dc706dbd57b3d63e02bbe04c9a1a152ef9af34f (diff) | |
download | gitlab-ce-5d7b2bd44e08414addde7eb700e5ccf21f59f94c.tar.gz |
Prevent default on link click in ref switcher
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/project.js.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee index 80ea179948d..2a8e8f2552b 100644 --- a/app/assets/javascripts/project.js.coffee +++ b/app/assets/javascripts/project.js.coffee @@ -86,7 +86,8 @@ class @Project $el.attr('data-ref') toggleLabel: (obj, $el) -> $el.text().trim() - clicked: (e) -> + clicked: (selected, $el, e) -> + e.preventDefault() if $('input[name="ref"]').length $form = $dropdown.closest('form') action = $form.attr('action') |