anseki / jquery-plainmodal

The simple jQuery Plugin for fully customizable modal windows.
http://anseki.github.io/jquery-plainmodal/
MIT License
78 stars 11 forks source link

Add closing options #3

Closed luansemensato closed 9 years ago

luansemensato commented 9 years ago
anseki commented 9 years ago

Hi luansemensatoribeiro, Thank you for your post. Do you want to make the modal stay opening when those events are fired? Does the plainmodalbeforeclose event help you?

$('#modal').on('plainmodalbeforeclose', function(e) { e.preventDefault(); });

https://github.com/anseki/jquery-plainmodal#plainmodalbeforeclose

luansemensato commented 9 years ago

Hi @anseki. With the modal already open, I need to block the closure from the esc key, and clicking outside the content (black overlay). Will only be possible through the close button ($. closeOverlay ();).

anseki commented 9 years ago

Yes, of course those you needed are granted. If the plainmodalbeforeclose has a problem, please tell me it. Before, I didn't add those options, and I added those events that is useful and free customizable, because the programers who use plainModal should be able to decide what is disabled or not. Then, you can customize the behavior freely like #2.

anseki commented 9 years ago

There is no reply, and 8 days have passed. I think that this problem was already solved, and I close the issue. If not solved, please reopen it.