diff --git a/src/js/zui.js b/src/js/zui.js index 801ffc6cbb5320529017dc378dc8fc5743d1ef30..4267f564e163a353738159744f7f9990747246af 100644 --- a/src/js/zui.js +++ b/src/js/zui.js @@ -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); +