From: x2000habouzit Date: Wed, 17 Nov 2004 18:59:09 +0000 (+0000) Subject: adapt fiche popup to new size X-Git-Tag: xorg/old~907 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=25a6f9d5dc7a93e7fb451a678e6c861d41d2600b;p=platal.git adapt fiche popup to new size --- 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];