提交 4b40b4a0 编写于 作者: C Catouse

* updated lightbox in zui.js.

上级 c7bcbeaf
......@@ -1698,13 +1698,11 @@ if (typeof jQuery === "undefined") { throw new Error("ZUI requires jQuery") }
// LIGHTBOX
(function($)
{
jQuery.fn.lightbox = function()
{
$(document).on('click', '[data-toggle="lightbox"]', function(){
$(this).click(function(){
// need modal
if (!$.fn.modal) throw new Error('modal requires for lightbox');
......@@ -1736,3 +1734,4 @@ if (typeof jQuery === "undefined") { throw new Error("ZUI requires jQuery") }
});
};
})(jQuery);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册