summaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-07-10 20:09:31 +0000
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-07-10 20:09:31 +0000
commitd2936a1ca6f01021b4f67da298618aeae5b6515e (patch)
tree8cb23f52940f7c8c45e84be670ba44af248bbc7d /web/js
parentcad3b444f35b64280dcfce3a27d739a7a4642d1d (diff)
downloadlabitrack-d2936a1ca6f01021b4f67da298618aeae5b6515e.tar.gz
labitrack-d2936a1ca6f01021b4f67da298618aeae5b6515e.tar.xz
labitrack-d2936a1ca6f01021b4f67da298618aeae5b6515e.zip
fix external links
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'web/js')
-rw-r--r--web/js/labitrack.d/40-router.js2
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;