diff options
author | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-07-10 20:09:31 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-07-10 20:09:31 +0000 |
commit | d2936a1ca6f01021b4f67da298618aeae5b6515e (patch) | |
tree | 8cb23f52940f7c8c45e84be670ba44af248bbc7d | |
parent | cad3b444f35b64280dcfce3a27d739a7a4642d1d (diff) | |
download | labitrack-d2936a1ca6f01021b4f67da298618aeae5b6515e.tar.gz labitrack-d2936a1ca6f01021b4f67da298618aeae5b6515e.tar.xz labitrack-d2936a1ca6f01021b4f67da298618aeae5b6515e.zip |
fix external links
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
-rw-r--r-- | web/js/labitrack.d/40-router.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/labitrack.d/40-router.js b/web/js/labitrack.d/40-router.js index 50d4c8f..c8952ae 100644 --- a/web/js/labitrack.d/40-router.js +++ b/web/js/labitrack.d/40-router.js @@ -3,10 +3,10 @@ function handle_click(event) { if (!Modernizr.history) return true; - event.preventDefault(); var href = $(event.target).attr('href'); var curpath = window.location.pathname; if (href !== undef && href[0] === '/') { + event.preventDefault(); if (curpath === href) { console.log('ignoring click event for', href); return; |