From ea736ad39d7804f8afd15b979c07e64356d70e69 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 13 Dec 2008 12:47:33 +0100 Subject: [PATCH] Fix double popup. Signed-off-by: Florent Bruneau --- htdocs/javascript/xorg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index 2f91124..39508a8 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -221,7 +221,7 @@ function auto_links() { || href.indexOf('mailto:') > -1 || href.indexOf('javascript:') > -1) { return; } - if (href.indexOf(fqdn) < 0 || node.hasClass('popup')) { + if ((href.indexOf(fqdn) < 0 && this.className.indexOf('popup') < 0) || node.hasClass('popup')) { node.click(function () { window.open(this.href); return false; }); } if (href.indexOf(fqdn) > -1 && light) { @@ -267,7 +267,7 @@ function getType(char) { return 1; } else if (char >= 'A' && char <= 'Z') { return 2; - } else if (char >= '0' && char <= '9') { + } else if (char >= '0' && char <= '9') { return 3; } else { return 4; -- 2.1.4