1) You can edit the CSS and give the font a size of 0.
.ui-dialog-titlebar-close {font-size: 0px;}
2) To globally remove the X search for this line in the jQuery.UI.js
and simply delete the "X":
.append('X')
--~--~-~--~~~---~--~~
You received this message because
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" <[EMAIL PROTECTED]> wrote:
> There isn't currently a way to disable it bein
Good idea:
http://docs.jquery.com/UI/Dialog#How_do_I_prevent_the_close_button_.27X.27_from_being_added_to_the_dialog_.3F
Thanks.
- Richard
On Thu, Oct 23, 2008 at 11:06 PM, Jaime Ochoa Malagón <[EMAIL PROTECTED]>wrote:
>
> this should go to the FAQ?
>
> On Thu, Oct 23, 2008 at 6:02 AM, Spot <[
this should go to the FAQ?
On Thu, Oct 23, 2008 at 6:02 AM, Spot <[EMAIL PROTECTED]> wrote:
>
> Thanks Richard.
>
> Richard D. Worth 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; }
>>
>
Thanks Richard.
Richard D. Worth 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:
>
> $("#my
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-di