hi jquerers,

when calling:

$(element).dialog(modal: true, buttons: {Cancel: function() {$
(this).dialog('close');}})

the $(element) gets effectively removed on _init() -why? After
canceling a dialog one should be able to reopen the dialog... the
documentation does not mention such cases and in the demo each click
just loads a page (e.g. 
http://jqueryui.com/demos/dialog/modal-confirmation.html)

there are some confusing line about 'open', 'close' and 'destroy'
which i do not understand:

@ http://jqueryui.com/demos/dialog/#modal-confirmation
>> A call to $(foo).dialog() initializes a dialog. If you want a click to open 
>> a dialog, use $(foo).dialog('open'), but if the >> dialog hasn't been 
>> destroyed, the $(foo).dialog() init call is only required once, not on each 
>> click.

anyone?

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

Reply via email to