Is it possible to add these two as options?


aritra.ghosh’s picture

Though I admit this may be a bit hackish, but i achieved the close on click outside the modal with this piece of js code:

$('#modalBackdrop').click(function() {

Hope this helps!!

sincronista’s picture

I have tried to add this function to my site without any luck.

I added your piece of code to my modal_forms_login.js file (because I am using the module only for my login window).

Could you give more details on where to add the code?


caiosba’s picture

You can do the following too:

// JavaScript
$('#modalBackdrop').click(function() {

Or add the line below to ctools/js/modal.js (around line 430):

// JavaScript
$('#modalBackdrop').click(function() { close(); });