fix problems creating YUI Panel

This commit is contained in:
Doug Bell 2010-07-30 14:04:50 -05:00
parent 4f41631833
commit 08ded32496

View file

@ -430,7 +430,7 @@ WebGUI.Admin.prototype.openModalDialog
return; // Can't have more than one open return; // Can't have more than one open
} }
var dialog = YAHOO.widget.Panel( 'adminModalDialog', { var dialog = new YAHOO.widget.Panel( 'adminModalDialog', {
"width" : width, "width" : width,
"height" : height, "height" : height,
fixedcenter : true, fixedcenter : true,
@ -441,7 +441,7 @@ WebGUI.Admin.prototype.openModalDialog
visible : true, visible : true,
draggable : false draggable : false
} ); } );
dialog.setBody( '<iframe src="' + url + '" width="' + width + '" height="' + height '"></iframe>' ); dialog.setBody( '<iframe src="' + url + '" width="' + width + '" height="' + height + '"></iframe>' );
dialog.render( document.body ); dialog.render( document.body );
this.modalDialog = dialog; this.modalDialog = dialog;