One could declare a generic .panel class in CSS:
.panel .ui-dialog-titlebar-close { display:none }
and then create the dialog as $
("#myDiv").dialog({dialogClass:"panel"});
Victor
On Oct 23, 5:29 am, "Richard D. Worth" <
rdwo...@gmail.com> wrote:
> There isn't currently a way to disable it being added. You could use css to
> hide it:
>
> .ui-dialog .ui-dialog-titlebar-close { display: none; }
>
> or if you really want it gone, you can use jQuery to remove it when the
> dialog is opened:
>
> $("#myDiv").dialog({
> open:function() {
>
> $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar-close").remove();
> }
>
> });
>
> - Richard
>
> On Wed, Oct 22, 2008 at 10:17 AM, Spot <
s...@napalmriot.com>