Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/assets/dialog.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/assets/dialog.js,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/assets/dialog.js 24 Nov 2007 15:35:40 -0000 1.6 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/assets/dialog.js 13 May 2008 18:53:51 -0000 1.7 @@ -1,10 +1,17 @@ -/* This compressed file is part of Xinha. For uncomressed sources, forum, and bug reports, go to xinha.org */ +/* 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/plugins/ImageManager/assets/dialog.js */ function Dialog(_1,_2,_3){ if(typeof _3=="undefined"){ _3=window; } +if(typeof window.showModalDialog=="function"){ +Dialog._return=_2; +var r=window.showModalDialog(_1,_3,"dialogheight=10;dialogwidth=10;resizable=yes"); +}else{ Dialog._geckoOpenModal(_1,_2,_3); } +} Dialog._parentEvent=function(ev){ setTimeout(function(){ if(Dialog._modal&&!Dialog._modal.closed){ @@ -18,13 +25,13 @@ Dialog._return=null; Dialog._modal=null; Dialog._arguments=null; -Dialog._geckoOpenModal=function(_5,_6,_7){ -var _8="hadialog"+_5; -var _9=/\W/g; -_8=_8.replace(_9,"_"); -var _a=window.open(_5,_8,"toolbar=no,menubar=no,personalbar=no,width=10,height=10,"+"scrollbars=no,resizable=yes,modal=yes,dependable=yes"); -Dialog._modal=_a; -Dialog._arguments=_7; +Dialog._geckoOpenModal=function(_6,_7,_8){ +var _9="hadialog"+_6; +var _a=/\W/g; +_9=_9.replace(_a,"_"); +var _b=window.open(_6,_9,"toolbar=no,menubar=no,personalbar=no,width=10,height=10,"+"scrollbars=no,resizable=yes,modal=yes,dependable=yes"); +Dialog._modal=_b; +Dialog._arguments=_8; function capwin(w){ Dialog._addEvent(w,"click",Dialog._parentEvent); Dialog._addEvent(w,"mousedown",Dialog._parentEvent); @@ -38,28 +45,28 @@ capwin(window); for(var i=0;i