Improved error handling.

This commit is contained in:
Martin Edenhofer 2016-06-08 16:40:27 +02:00
parent cc52b7844d
commit 4c0c3165af

View file

@ -215,6 +215,7 @@ class App.Navigation extends App.ControllerWidgetPermanent
return return
else if e.keyCode is 13 # enter else if e.keyCode is 13 # enter
href = @$('#global-search-result .nav-tab.is-hover').attr('href') href = @$('#global-search-result .nav-tab.is-hover').attr('href')
return if !href
@locationExecute(href) @locationExecute(href)
@emptyAndClose() @emptyAndClose()
return return