Commit 5d7b2bd4 authored by Phil Hughes's avatar Phil Hughes

Prevent default on link click in ref switcher

parent 1dc706db
...@@ -86,7 +86,8 @@ class @Project ...@@ -86,7 +86,8 @@ class @Project
$el.attr('data-ref') $el.attr('data-ref')
toggleLabel: (obj, $el) -> toggleLabel: (obj, $el) ->
$el.text().trim() $el.text().trim()
clicked: (e) -> clicked: (selected, $el, e) ->
e.preventDefault()
if $('input[name="ref"]').length if $('input[name="ref"]').length
$form = $dropdown.closest('form') $form = $dropdown.closest('form')
action = $form.attr('action') action = $form.attr('action')
......
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