开发者

Colorbox Plugin - Disable iframe close, on outside modal window click

While clicking outside modal window(iframe), it gets closed that's not suitable for forms etc.. how to disable 开发者_开发百科this thing?? :S


Please take a look at the website: http://colorpowered.com/colorbox/

There's a table with al sorts of key/value options you can add to your colorbox method. One of the keys is: overlayClose
By default this is set to true and the description states:

If true, enables closing ColorBox by clicking on the background overlay.

Just add the key/value pair to the method call and you will have a modal window.

$.colorbox({ overlayClose: false });

This as an alternative to your answer/comment.


escKey: false in the colorbox constructor should do it.


$("#selector").colorbox({
    //your other colorbox options
    //...
    escKey: false,
    overlayClose: false
);

Hope this helps..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜