We have a modal window which is backed by a page/iframe (I'll refer to this as the "primary" modal). On this page-based modal window there is link which brings up another modal window, which is not backed by a page (I'll call this the "secondary" modal).
We have OK and Cancel buttons on this secondary modal window. In the onClick handling for these buttons, we invoke ModalWindow.closeCurrent(target). Whenever the user clicks on one of these buttons from within the secondary modal window we get a javascript popup mesage: "You can't close this modal window. Close the top-level modal window first." It appears that the window close processing mistakenly thinks we are trying to close the primary modal window. It might have something to do with the iframe logic referred to in the Wicket.Window.create function. Interestingly, the close icon in the upper right corner of the modal works fine. Do you have any ideas on how we can prevent this popup message from occurring? Thanks, Jamie -- View this message in context: http://www.nabble.com/Problem-with-%22Close-the-top-level-modal-window-first%22-message-tf4047233.html#a11496134 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
