e.g. When logging in through dialog, you don't always want to immediately close the dialog, but perhaps display a message. The problem is that if you hit the 'close dialog' or 'x' rather than hitting a submit button which includes a closing the dialog command, the page doesn't refresh and your 'login' and 'register' links are still there, rather than being replaced with 'my account'.
So, a solution is to include a command dialog_command_refresh_on_close() that forces a page refresh on dialog close.
| Comment | File | Size | Author |
|---|---|---|---|
| patch_commit_39205e055f0b.patch | 1.34 KB | moonray |
Comments
Comment #1
drewish commentedI don't think we need to explicitly compare it to true:
Just using
if (Drupal.Dialog.dialog.refreshOnClose)seems like it would be fine.Spelling:
Comment #2
fortis commentedyou can use remove event on dialog
Comment #3
becometa commentedis there any 7.v version of this?
Comment #4
devin carlson commentedDialog 6.x is no longer supported.