backport
authorx2000habouzit <x2000habouzit>
Mon, 15 Nov 2004 12:07:28 +0000 (12:07 +0000)
committerx2000habouzit <x2000habouzit>
Mon, 15 Nov 2004 12:07:28 +0000 (12:07 +0000)
htdocs/javascript/xorg.js

index 5969a39..b82853b 100644 (file)
@@ -50,7 +50,7 @@ function auto_links() {
     fqdn = fqdn.replace(/^https?:\/\/([^\/]*)\/.*$/,'$1');
     for(var i=0; i<nodes.length; i++) {
        node = nodes[i];
-       if(!node.href || node.className == 'xdx' || node.href.indexOf('mailto:') > -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; };
        }