Ticket #4922 (closed bug: fixed)
window.location.reload() doesn't work in dialog's close callback when it's triggered by ESC in Firefox
| Reported by: | bohdan.ganicky | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.8 |
| Component: | ui.dialog | Version: | 1.7.2 |
| Keywords: | Cc: | bohdan.ganicky@… | |
| Blocking: | Blocked by: |
Description
code:
$('#dialog').dialog({
close: function() {
window.location.reload();
}
});
expected behavior:
- when I press ESC on focused dialog, dialog is closed and page is reloaded
- when I click close (X) button on dialog's header, dialog is closed and page is reloaded
actual behavior:
- dialog is closed but page IS NOT reloaded when I press ESC in Firefox
- dialog is closed and page is reloaded properly when I click close (X) button on dialog's header
testcase:
Change History
comment:2 Changed 4 years ago by joern.zaefferer
- Milestone changed from TBD to 1.8
There shouldn't be any difference, both the ESC-keyhandler and the x-icon-click-handler use the close-method, which triggers the close-event.
Note: See
TracTickets for help on using
tickets.

