Merge pull request #491 from taigaio/issue/2533/fix-cmd-click

fix #2533 - CMD + click open a new tab
stable
Alejandro 2015-06-08 23:58:25 -07:00
commit c8c24c37dd
1 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,9 @@ NavigationUrlsDirective = ($navurls, $auth, $q, $location) ->
target.attr("href", fullUrl)
$el.on "click", (event) ->
if event.metaKey || event.ctrlKey
return
event.preventDefault()
target = $(event.currentTarget)