diff options
Diffstat (limited to 'web/js/labitrack.d')
-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; |