From: x2000habouzit Date: Mon, 15 Nov 2004 12:07:28 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~934 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c32e8841d0c942d59d7bc547effe20fb64004310;p=platal.git backport --- diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index 5969a39..b82853b 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -50,7 +50,7 @@ function auto_links() { fqdn = fqdn.replace(/^https?:\/\/([^\/]*)\/.*$/,'$1'); for(var i=0; i -1 ) continue; + if(!node.href || node.className == 'xdx' || node.href.indexOf('mailto:') > -1 || node.href.indexOf('javascript:')>-1) continue; if(node.href.indexOf(fqdn)<0 || node.className == 'popup') { node.onclick = function () { window.open(this.href); return false; }; }