admin管理员组文章数量:1415101
I want to prevent colorbox close on cboxOverlay click
I'm using this code:
$.fn.colorbox({ overlayClose: false });
But it doesn't work.
I also disabled Esc close
$(document).bind("keydown.cbox_close", function (e) {
if (e.keyCode === 27) {
e.preventDefault();
cboxPublic.close();
}});
Esc code working properly .
But how to prevent colorbox close for overlay?
Thanks
I want to prevent colorbox close on cboxOverlay click
I'm using this code:
$.fn.colorbox({ overlayClose: false });
But it doesn't work.
I also disabled Esc close
$(document).bind("keydown.cbox_close", function (e) {
if (e.keyCode === 27) {
e.preventDefault();
cboxPublic.close();
}});
Esc code working properly .
But how to prevent colorbox close for overlay?
Thanks
Share Improve this question edited Oct 20, 2014 at 10:56 Barnee 3,4098 gold badges45 silver badges56 bronze badges asked Dec 4, 2012 at 9:19 Cake PHPCake PHP 1635 silver badges12 bronze badges 1- :) i found $(".ajax").colorbox({overlayClose: false}); – Cake PHP Commented Dec 4, 2012 at 9:30
1 Answer
Reset to default 5Shouldn't it be:
$.colorbox({ overlayClose: false });
See working demo here: Fiddle
本文标签: phpHow to disable the click on overlay to close ColorboxStack Overflow
版权声明:本文标题:php - How to disable the click on overlay to close Colorbox? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745177741a2646322.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论