Skip to content

Commit

Permalink
Proper handling of modifiers during routing
Browse files Browse the repository at this point in the history
  • Loading branch information
inossidabile committed Mar 17, 2014
1 parent bffa815 commit 924ae9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/joosy/router.coffee
Expand Up @@ -29,8 +29,9 @@ class Joosy.Router extends Joosy.Module

# Comfortable links for the views
$(document).on 'click', 'a[data-joosy]', (event) ->
event.preventDefault()
Joosy.Router.navigate @getAttribute('href')
if !event.ctrlKey && !event.metaKey
event.preventDefault()
Joosy.Router.navigate @getAttribute('href')

#
# Rails-like wrapper around internal raw routes representation
Expand Down

0 comments on commit 924ae9c

Please sign in to comment.