You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/12/17 17:25:09 UTC

[jira] [Resolved] (WICKET-4909) ModalWindow overwrites window.onbeforeunload

     [ https://issues.apache.org/jira/browse/WICKET-4909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4909.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 7.0.0
                   6.13.0

> ModalWindow overwrites window.onbeforeunload
> --------------------------------------------
>
>                 Key: WICKET-4909
>                 URL: https://issues.apache.org/jira/browse/WICKET-4909
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 6.3.0
>            Reporter: Jesse Bonzo
>            Assignee: Martin Grigorov
>            Priority: Minor
>              Labels: ajax, event, javascript, modal, wicket
>             Fix For: 6.13.0, 7.0.0
>
>         Attachments: windowOnBeforeUnloadFix.patch
>
>
> If window.onbeforeunload is changed after a ModalWindow is opened the change is lost when the ModalWindow is closed. I expected calling ModalWindow#showUnloadConfirmation(false) would fix this, but the javascript for the modal window unconditionally overwrites window.onbeforeunload. I suggest checking settings.unloadConfirmation before overwriting window.onbeforeunload.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)