From ba36369638896d4fd3edb8e52b8cdc6c82608333 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Fri, 11 Jan 2013 09:31:04 -0500 Subject: [PATCH] Better check for 'real' links on shift/ctrl clicks --- program/js/app.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index c1ea2be..6f45cd0 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -509,7 +509,7 @@ return false; // let the browser handle this click (shift/ctrl usually opens the link in a new window/tab) - if ((obj && obj.href && String(obj.href).indexOf(location.href) < 0) && rcube_event.get_modifier(event)) { + if ((obj && obj.href && String(obj.href).indexOf('#') < 0) && rcube_event.get_modifier(event)) { return true; } -- Gitblit v1.9.1