Sometimes we need to make impossible (or at least difficult) for users to close the modalframe using the 'x' button or pressing escape. But instead we want want to force them into using whatever form/page is inside the modalframe.

Simply adding hiding the 'x' button, and disabling the escape button should be enough for this.

Is it possible to add this? What do you think?

Comments

dsnopek’s picture

Issue summary: View changes
Status: Active » Fixed

See this post on StackOverflow about how to do this:

http://stackoverflow.com/questions/896777/remove-close-button-on-jqueryu...

You'll have to alter the settings to set "closeOnEscape" to FALSE and the add some CSS to hide the button. This can be done from a custom module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.