From 85cd73c768b57aa13b1cd6fc75b5c855b0b8fe89 Mon Sep 17 00:00:00 2001 From: "Luke \"Jared\" Bennett" Date: Thu, 7 Jul 2016 15:08:34 +0100 Subject: improved turbolinks.visit conditional --- app/assets/javascripts/gl_dropdown.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets/javascripts') diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee index e096effaade..7a4224d9032 100644 --- a/app/assets/javascripts/gl_dropdown.js.coffee +++ b/app/assets/javascripts/gl_dropdown.js.coffee @@ -566,7 +566,7 @@ class GitLabDropdown e.stopImmediatePropagation() $el.first().trigger 'click' href = $el.attr 'href' - Turbolinks.visit(href) if href + Turbolinks.visit(href) if href and href isnt '#' addArrowKeyEvent: -> ARROW_KEY_CODES = [38, 40] -- cgit v1.2.1