You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rawe <ra...@dachser.com> on 2010/06/07 15:04:52 UTC

Closing modalWindow outside the dialog window by mouse click

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org