From 25a6f9d5dc7a93e7fb451a678e6c861d41d2600b Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 17 Nov 2004 18:59:09 +0000 Subject: [PATCH] adapt fiche popup to new size --- htdocs/javascript/xorg.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index b82853b..0709020 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -42,8 +42,6 @@ function popWin(theNode,w,h) { 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+w+',height='+h); } -function popWin2(theNode) { popWin(theNode,900,700); } - function auto_links() { nodes = document.getElementsByTagName('a'); fqdn = document.URL; @@ -55,7 +53,7 @@ function auto_links() { node.onclick = function () { window.open(this.href); return false; }; } if(node.className == 'popup2') { - node.onclick = function () { popWin2(this); return false; }; + node.onclick = function () { popWin(this,840,600); return false; }; } if(matches = (/^popup_([0-9]*)x([0-9]*)$/).exec(node.className)) { var w = matches[1], h = matches[2]; -- 2.1.4