Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/popupwin.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/popupwin.js,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/popupwin.js 13 May 2008 18:53:45 -0000 1.5 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/popupwin.js 16 Jan 2009 09:05:46 -0000 1.6 @@ -1,123 +1,2 @@ -/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */ -/* This file is part of version 0.95 released Mon, 12 May 2008 17:33:15 +0200 */ -/* The URL of the most recent version of this file is http://svn.xinha.webfactional.com/trunk/modules/Dialogs/popupwin.js */ -function PopupWin(_1,_2,_3,_4){ -this.editor=_1; -this.handler=_3; -var _5=window.open("","__ha_dialog","toolbar=no,menubar=no,personalbar=no,width=600,height=600,left=20,top=40,scrollbars=no,resizable=yes"); -this.window=_5; -var _6=_5.document; -this.doc=_6; -var _7=this; -var _8=document.baseURI||document.URL; -if(_8&&_8.match(/(.*)\/([^\/]+)/)){ -_8=RegExp.$1+"/"; -} -if(typeof _editor_url!="undefined"&&!(/^\//.test(_editor_url))&&!(/http:\/\//.test(_editor_url))){ -_8+=_editor_url; -}else{ -_8=_editor_url; -} -if(!(/\/$/.test(_8))){ -_8+="/"; -} -this.baseURL=_8; -_6.open(); -var _9=""+_2+"\n"; -_9+="\n"; -if(_editor_skin!=""){ -_9+="\n"; -} -_9+="\n"; -_9+=""; -_6.write(_9); -_6.close(); -function init2(){ -var _a=_6.body; -if(!_a){ -setTimeout(init2,25); -return false; -} -_5.title=_2; -_6.documentElement.style.padding="0px"; -_6.documentElement.style.margin="0px"; -var _b=_6.createElement("div"); -_b.className="content"; -_7.content=_b; -_a.appendChild(_b); -_7.element=_a; -_4(_7); -_5.focus(); -} -init2(); -} -PopupWin.prototype.callHandler=function(){ -var _c=["input","textarea","select"]; -var _d={}; -for(var ti=_c.length;--ti>=0;){ -var _f=_c[ti]; -var els=this.content.getElementsByTagName(_f); -for(var j=0;j\n";c+='\n";if(_editor_skin!=""){c+='\n"}c+="\n";c+='';h.write(c);h.close();function b(){var k=h.body;if(!k){setTimeout(b,25);return false}f.title=g;h.documentElement.style.padding="0px";h.documentElement.style.margin="0px";var l=h.createElement("div");l.className="content";j.content=l;k.appendChild(l);j.element=k;e(j);f.focus()}b()}PopupWin.prototype.callHandler=function(){var c=["input","textarea","select"];var h={};for(var f=c.length;--f>=0;){var a=c[f];var d=this.content.getElementsByTagName(a);for(var b=0;b