If you use the onClose callback, you must call $.modal.close() to
remove the dialog elements from the DOM. If an onClose callback has
been used, calling $.modal.close() will not trigger the callback
again, it can only happen once.

I suggest using the onShow callback to bind your second event based on
"closing" the dialog and then call $.modal.close() from there, which
will trigger the onClose calback (which is really just supposed to be
used for closing animations, etc.).

Hope that helps.

-Eric

On Oct 16, 3:56 am, "biggerandbetterkah...@googlemail.com"
<biggerandbetterkah...@googlemail.com> wrote:
> I'm using the simpleModal plugin to display dialog windows. I have a
> callback on the onclose event which fires another event.
>
> Is it correct that the $.modal.close() does not fire the onclose
> callback. If this is correct is there a way i could workaround this?

Reply via email to