Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to add these two as options?
Is it possible to add these two as options?
Comments
Comment #1
aritra.ghosh CreditAttribution: aritra.ghosh commentedThough 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() {
$('.popups-close').trigger('click');
});
Hope this helps!!
Comment #2
sincronista CreditAttribution: sincronista commentedI 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?
Thanks!
Comment #3
caiosba CreditAttribution: caiosba commentedYou can do the following too:
Or add the line below to ctools/js/modal.js (around line 430):
Comment #4
chrinor2002 CreditAttribution: chrinor2002 as a volunteer commentedAdd the following to any of your JS documents (such as one that is included for your theme):
Comment #5
cosolom CreditAttribution: cosolom commentedchrinor2002, thank you for elegant solution
Comment #6
hamrant CreditAttribution: hamrant at DEWEB Studio for Drupal Ukraine Community commentedchrinor2002, thank you
Comment #7
firewaller CreditAttribution: firewaller commented#4 works great for me! Would love to see this added as an optional setting in the module.
Comment #8
firewaller CreditAttribution: firewaller commented