jquery fancybox - prevent close on click outside of fancybox

后端 未结 15 933
独厮守ぢ
独厮守ぢ 2020-12-16 18:15

I\'m using the Fancybox plugin for my modal windows. It seems like no matter what options I use I can\'t prevent the fancybox modal window from closing when the user clicks

15条回答
  •  醉梦人生
    2020-12-16 18:33

    There is no option for that. You will have to change the source code.

    In jquery.fancybox-1.2.1.js you need to comment out (or delete) line 341 in the _finish method:

    //$("#fancy_overlay, #fancy_close").bind("click", $.fn.fancybox.close);
    

提交回复
热议问题