Seems like your using the SimpleModal jQuery plugin.I am not sure what
happens after you call $.modal.close(); does that remove() the dialog from
the DOM? or does it change the #content in any way?

Thanks & Regards,
Dhruva Sagar.


Pablo Picasso<http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html>
- "Computers are useless. They can only give you answers."

On Fri, Aug 21, 2009 at 1:22 PM, Jirka <jsevco...@gmail.com> wrote:

>
> Hi, I want create a confirmation of close in Simple modal. I try make
> this code:
>
> $(\"#content\").modal({onClose: function (dialog) {
>               if (confirm(\"Realy close?\")){
>                 dialog.data.fadeOut('slow', function () {
>                    dialog.container.slideUp('slow', function () {
>                               dialog.overlay.fadeOut('slow', function () {
>                                      $.modal.close();
>                               });
>                        });
>                 });
>               }
> }});
>
> It works, but only for first time. When i click to close button second
> time, is makes nothing. Can You help me? Thanks
>

Reply via email to