Maybe a solution was already posted, I didn't find an answer !

I want to close a modal window just by mouse click outside the modal window
(dialog).

I tried some javascript code:

var win = window.Wicket.Window;
        
if (typeof(win.current) != "undefined") {
        win.current.close();
}

Problem is:
1.) The modal window just opens one time. -> I can 't open the modal window
anymore with:
btnModalDlg = new AjaxButton("btnModalDlg") {
        @Override
        public void onSubmit(AjaxRequestTarget target, Form<?> form) {
           modalWin.show(target);
        }
};

2.)And the modal window also closes when cklicking on it.
But I need the close behaviour just when clicking outside the dialog.

Is there any solution ?

Thanks for any help!

Ralph
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Closing-modalWindow-outside-the-dialog-window-by-mouse-click-tp2245910p2245910.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to