summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-01-11 15:30:43 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-01-11 15:31:04 +0100
commitba36369638896d4fd3edb8e52b8cdc6c82608333 (patch)
treedfefe6119782a171a1e9797f35cdfe677a1ddf9f /program/js
parenta3e341cb2919f298caade93c9698c6b4fd9de6c4 (diff)
Better check for 'real' links on shift/ctrl clicks
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c1ea2be3a..6f45cd045 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -509,7 +509,7 @@ function rcube_webmail()
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;
}