In fancyBox 2, is there a key/value I could set that will disable the lightbox from closing when the user clicks the background (semi-transparent black background)?
This will disable closing fancybox when clicking on the overlay (the semi-transparent background)
fancyEls.fancybox({
helpers : {
overlay : {
closeClick: false
} // prevents closing when clicking OUTSIDE fancybox
}
});
This will disable all default click methods of closing fancybox
fancyEls.fancybox({
closeBtn : false,
closeClick : false,
helpers : {
overlay : {
closeClick: false
} // prevents closing when clicking OUTSIDE fancybox
},
keys : {
close: null
} // prevents close when clicking escape button
});
And this will do the same as well as disabling slideshow functionality
fancyEls.fancybox({
modal : true //If set to true, will disable navigation and closing
});