2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
!function(t){"function"==typeof define&&define.amd?define(["jquery","blueImpGallery"],t):t(window.jQuery,window.blueimp.Gallery)}(function(t,o){t.extend(o.prototype.options,{useBootstrapModal:!0});var e=o.prototype.close,n=o.prototype.imageFactory,i=o.prototype.videoFactory,r=o.prototype.textFactory;t.extend(o.prototype,{modalFactory:function(o,e,n,i){if(!this.options.useBootstrapModal||n)return i.call(this,o,e,n);var r=this,a=t(this.container).children(".modal"),l=a.clone().show().on("click",function(t){if(t.target===l[0]||t.target===l.children()[0]){t.preventDefault();t.stopPropagation();r.close()}}),c=i.call(this,o,function(t){e({type:t.type,target:l[0]});l.addClass("in")},n);l.find(".modal-title").text(c.title||String.fromCharCode(160));l.find(".modal-body").append(c);return l[0]},imageFactory:function(t,o,e){return this.modalFactory(t,o,e,n)},videoFactory:function(t,o,e){return this.modalFactory(t,o,e,i)},textFactory:function(t,o,e){return this.modalFactory(t,o,e,r)},close:function(){this.container.find(".modal").removeClass("in");e.call(this)}})});
|
|
//# sourceMappingURL=bootstrap-image-gallery.js.map
|