From 4c0c3165af1d1deba1b0f9e406c55e3aece3381f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 8 Jun 2016 16:40:27 +0200 Subject: [PATCH] Improved error handling. --- app/assets/javascripts/app/controllers/navigation.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/app/controllers/navigation.coffee b/app/assets/javascripts/app/controllers/navigation.coffee index 0ba838543..115f8f6c1 100644 --- a/app/assets/javascripts/app/controllers/navigation.coffee +++ b/app/assets/javascripts/app/controllers/navigation.coffee @@ -215,6 +215,7 @@ class App.Navigation extends App.ControllerWidgetPermanent return else if e.keyCode is 13 # enter href = @$('#global-search-result .nav-tab.is-hover').attr('href') + return if !href @locationExecute(href) @emptyAndClose() return