Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/dialog.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/dialog.js,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/dialog.js 13 May 2008 18:53:45 -0000 1.4 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/dialog.js 16 Jan 2009 09:05:46 -0000 1.5 @@ -1,75 +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/dialog.js */ -function Dialog(_1,_2,_3){ -if(typeof _3=="undefined"){ -_3=window; -} -if(typeof window.showModalDialog=="function"&&!Xinha.is_webkit){ -Dialog._return=function(_4){ -if(typeof _2=="function"){ -_2(_4); -} -}; -var r=window.showModalDialog(_1,_3,"dialogheight=300;dialogwidth=400;resizable=yes"); -}else{ -Dialog._geckoOpenModal(_1,_2,_3); -} -} -Dialog._parentEvent=function(ev){ -setTimeout(function(){ -if(Dialog._modal&&!Dialog._modal.closed){ -Dialog._modal.focus(); -} -},50); -try{ -if(Dialog._modal&&!Dialog._modal.closed){ -Xinha._stopEvent(ev); -} -} -catch(e){ -} -}; -Dialog._return=null; -Dialog._modal=null; -Dialog._arguments=null; -Dialog._selection=null; -Dialog._geckoOpenModal=function(_7,_8,_9){ -var _a=window.open(_7,"hadialog","toolbar=no,menubar=no,personalbar=no,width=10,height=10,"+"scrollbars=no,resizable=yes,modal=yes,dependable=yes"); -Dialog._modal=_a; -Dialog._arguments=_9; -function capwin(w){ -Xinha._addEvent(w,"click",Dialog._parentEvent); -Xinha._addEvent(w,"mousedown",Dialog._parentEvent); -Xinha._addEvent(w,"focus",Dialog._parentEvent); -} -function relwin(w){ -Xinha._removeEvent(w,"click",Dialog._parentEvent); -Xinha._removeEvent(w,"mousedown",Dialog._parentEvent); -Xinha._removeEvent(w,"focus",Dialog._parentEvent); -} -capwin(window); -for(var i=0;i