Easiest way is just to hide it with css:

.ui-dialog-titlebar-close { display: none; }

You can also remove it entirely:

$('#myDialog').closest('.ui-dialog').find('.ui-dialog-titlebar-close').remove();

- Richard

On Tue, Dec 8, 2009 at 11:26 AM, Joshua Beall <joshbe...@gmail.com> wrote:

> Hi All,
>
> We'd like to use the jQuery UI Dialog widget (here:
> http://jqueryui.com/demos/dialog/#modal-confirmation ) to show to
> users when they're accepting/rejecting the terms and conditions of our
> site, after they first login.
>
> The problem is that it has an "X" button, which is not clearly
> accepting or rejecting the conditions.  I want the only options for
> closing the window to be the "Accept" or "Reject" buttons.
>
> Is there a way to do that?
>
>  -Josh
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to jquery...@googlegroups.com.
> To unsubscribe from this group, send email to
> jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to