From d2936a1ca6f01021b4f67da298618aeae5b6515e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Tue, 10 Jul 2012 20:09:31 +0000 Subject: fix external links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- web/js/labitrack.d/40-router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') 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; -- cgit v1.2.1