js/events: ignore mailto links

fixes #7079
This commit is contained in:
Thomas Gelf 2014-09-05 15:05:22 +02:00
parent e205ca4d0b
commit 0b53f30b08
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@
var isMenuLink = $a.closest('#menu').length > 0;
var formerUrl;
var remote = /^(?:[a-z]+:)\/\//;
if (href.match(/^javascript:/)) {
if (href.match(/^(mailto|javascript):/)) {
return true;
}