summaryrefslogtreecommitdiff
path: root/program/js/app.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:30:43 +0100
commit38b71e78790f5ee80af8f65298f5408998f1769d (patch)
treeaee2f7590a13d8831909e2bb27742046687031c1 /program/js/app.js
parent64afb530a2c80ef54ff6495e427e86c7098df41a (diff)
Better check for 'real' links on shift/ctrl clicks
Diffstat (limited to 'program/js/app.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 de0d2b71a..b1714843b 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;
}