You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jeremy Thomerson (JIRA)" <ji...@apache.org> on 2010/11/04 05:33:43 UTC

[jira] Closed: (WICKET-3144) Extra client-side scripting before closing modalwindow

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

Jeremy Thomerson closed WICKET-3144.
------------------------------------

    Resolution: Won't Fix

This isn't a bug.  You can already do this.  The close button is generated and called in JS.  Just intercept that function call to the JS close function, do your own thing, then delegate to the original close function.

I think the function you want to override (and then delegate to) is: Wicket.Window.close - but I'm not 100% sure.  

If, in general, you need advice on how to do something, or think that you can't, you should ask on the mailing (dev@wicket.apache.org) list first.

> Extra client-side scripting before closing modalwindow
> ------------------------------------------------------
>
>                 Key: WICKET-3144
>                 URL: https://issues.apache.org/jira/browse/WICKET-3144
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-extensions
>            Reporter: Marieke Vandamme
>
> I would like to add extra client-side scripting that is executed before the modalwindow is closed. 
> Now you can already add server-side with overriding onCloseButtonClicked, but then the window is already closing. 
> I need this because I want to show a confirm-box to the user, so that he can confirm that he wants to close the window.
> Thanks, Marieke Vandamme

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.