\n
",this.$modalElement=t(i),this.$parts={},this.$parts.closeButton=t(this.options.layouts.closeButton),this.$modalElement.find(".slick-lightbox-inner").append(this.$parts.closeButton),t("body").append(this.$modalElement)},i.prototype.initSlick=function(i){var n;return n={initialSlide:i},this.options.lazy&&(n.lazyLoad="ondemand"),null!=this.options.slick?"function"==typeof this.options.slick?this.slick=this.options.slick(this.$modalElement):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(t.extend({},this.options.slick,n)):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(n),this.$modalElement.trigger("init.slickLightbox")},i.prototype.open=function(){return this.options.useHistoryApi&&this.writeHistory(),this.$element.trigger("show.slickLightbox"),setTimeout(function(t){return function(){return t.$element.trigger("shown.slickLightbox")}}(this),this.getTransitionDuration()),this.$modalElement.removeClass("slick-lightbox-hide-init")},i.prototype.close=function(){return this.$element.trigger("hide.slickLightbox"),setTimeout(function(t){return function(){return t.$element.trigger("hidden.slickLightbox")}}(this),this.getTransitionDuration()),this.$modalElement.addClass("slick-lightbox-hide"),this.destroy()},i.prototype.bindEvents=function(){var i;if(i=function(t){return function(){var i;return i=t.$modalElement.find(".slick-lightbox-inner").height(),t.$modalElement.find(".slick-lightbox-slick-item").height(i),t.$modalElement.find(".slick-lightbox-slick-img, .slick-lightbox-slick-item-inner").css("max-height",Math.round(t.options.imageMaxHeight*i))}}(this),t(window).on("orientationchange.slickLightbox resize.slickLightbox",i),this.options.useHistoryApi&&t(window).on("popstate.slickLightbox",function(t){return function(){return t.close()}}(this)),this.$modalElement.on("init.slickLightbox",i),this.$modalElement.on("destroy.slickLightbox",function(t){return function(){return t.destroy()}}(this)),this.$element.on("destroy.slickLightbox",function(t){return function(){return t.destroy(!0)}}(this)),this.$parts.closeButton.on("click.slickLightbox touchstart.slickLightbox",function(t){return function(i){return i.preventDefault(),t.close()}}(this)),(this.options.closeOnEscape||this.options.navigateByKeyboard)&&t(document).on("keydown.slickLightbox",function(t){return function(i){var n;if(n=i.keyCode?i.keyCode:i.which,t.options.navigateByKeyboard&&(37===n?t.slideSlick("left"):39===n&&t.slideSlick("right")),t.options.closeOnEscape&&27===n)return t.close()}}(this)),this.options.closeOnBackdropClick)return this.$modalElement.on("click.slickLightbox touchstart.slickLightbox",".slick-lightbox-slick-img",function(t){return t.stopPropagation()}),this.$modalElement.on("click.slickLightbox",".slick-lightbox-slick-item",function(t){return function(i){return i.preventDefault(),t.close()}}(this))},i.prototype.slideSlick=function(t){return"left"===t?this.slick.slick("slickPrev"):this.slick.slick("slickNext")},i.prototype.detectIE=function(){if(this.isIE=!1,/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&new Number(RegExp.$1)<9)return this.isIE=!0},i.prototype.getElementCaption=function(i,n){return this.options.caption?''+function(){switch(typeof this.options.caption){case"function":return this.options.caption(i,n);case"string":return t(i).data(this.options.caption)}}.call(this)+"":""},i.prototype.getElementSrc=function(i){switch(typeof this.options.src){case"function":return this.options.src(i);case"string":return t(i).attr(this.options.src);default:return i.href}},i.prototype.unbindEvents=function(){return t(window).off(".slickLightbox"),t(document).off(".slickLightbox"),this.$modalElement.off(".slickLightbox")},i.prototype.destroy=function(t){if(null==t&&(t=!1),this.didInit&&(this.unbindEvents(),setTimeout(function(t){return function(){return t.$modalElement.remove()}}(this),this.options.destroyTimeout)),t)return this.$element.off(".slickLightbox"),this.$element.off(".slickLightbox",this.options.itemSelector)},i.prototype.destroyPrevious=function(){return t("body").children(".slick-lightbox").trigger("destroy.slickLightbox")},i.prototype.getTransitionDuration=function(){var t;return this.transitionDuration?this.transitionDuration:(t=this.$modalElement.css("transition-duration"),this.transitionDuration=void 0===t?500:t.indexOf("ms")>-1?parseFloat(t):1e3*parseFloat(t))},i.prototype.writeHistory=function(){return"undefined"!=typeof history&&null!==history&&"function"==typeof history.pushState?history.pushState(null,null,""):void 0},i.prototype.filterOutSlickClones=function(i){return this.elementIsSlick()?i=i.filter(function(){var i;return i=t(this),!i.hasClass("slick-cloned")&&0===i.parents(".slick-cloned").length}):i},i.prototype.handlePossibleCloneClick=function(i,n){var o;return this.elementIsSlick()&&i.closest(".slick-slide").hasClass("slick-cloned")?(o=i.attr("href"),n.filter(function(){return t(this).attr("href")===o}).first()):i},i.prototype.elementIsSlick=function(){return this.$element.hasClass("slick-slider")},i}(),n={background:"rgba(0,0,0,.8)",closeOnEscape:!0,closeOnBackdropClick:!0,destroyTimeout:500,itemSelector:"a",navigateByKeyboard:!0,src:!1,caption:!1,captionPosition:"dynamic",images:!1,slick:{},useHistoryApi:!1,layouts:{closeButton:''},shouldOpen:null,imageMaxHeight:.9,lazy:!1},t.fn.slickLightbox=function(o){return o=t.extend({},n,o),t(this).each(function(){return this.slickLightbox=new i(this,o)}),this},t.fn.unslickLightbox=function(){return t(this).trigger("destroy.slickLightbox").each(function(){return this.slickLightbox=null})}}(jQuery);
//# sourceMappingURL=slick-lightbox.min.js.map
\ No newline at end of file
diff --git a/dist/slick-lightbox.min.js.map b/dist/slick-lightbox.min.js.map
index e212de8..a6506b6 100644
--- a/dist/slick-lightbox.min.js.map
+++ b/dist/slick-lightbox.min.js.map
@@ -1 +1 @@
-{"version":3,"sources":["dist/slick-lightbox.js"],"names":["$","SlickLightbox","defaults","element","options1","slickLightbox","this","options","$element","didInit","on","itemSelector","e","$clickedItem","$items","preventDefault","blur","shouldOpen","find","elementIsSlick","filterOutSlickClones","handlePossibleCloneClick","init","index","prototype","detectIE","createModal","bindEvents","initSlick","open","createModalItems","createItem","itemTemplate","lazyPlaceholder","length","links","source","caption","lazy","images","map","_this","img","el","info","src","getElementCaption","getElementSrc","html","isIE","background","captionPosition","join","$modalElement","$parts","layouts","closeButton","append","additional","initialSlide","lazyLoad","slick","extend","trigger","useHistoryApi","writeHistory","setTimeout","getTransitionDuration","removeClass","close","addClass","destroy","resizeSlides","h","height","css","Math","round","imageMaxHeight","window","closeOnEscape","navigateByKeyboard","document","code","keyCode","which","slideSlick","closeOnBackdropClick","stopPropagation","direction","test","navigator","userAgent","Number","RegExp","$1","data","call","attr","href","unbindEvents","off","unbindAnchors","remove","destroyTimeout","destroyPrevious","children","duration","transitionDuration","indexOf","parseFloat","history","pushState","filter","$item","hasClass","parents","closest","first","fn","each","unslickLightbox","jQuery"],"mappings":"AAAA,cACC,SAAUA,GACP,GAAIC,GAAeC,CACnBD,GAAgB,WAIZ,QAASA,GAAcE,EAASC,GAC5B,GAAIC,EACJC,MAAKC,QAAUH,EAEfE,KAAKE,SAAWR,EAAEG,GAClBG,KAAKG,SAAU,EACfJ,EAAgBC,KAChBA,KAAKE,SAASE,GAAG,sBAAuBJ,KAAKC,QAAQI,aAAc,SAAUC,GACzE,GAAIC,GAAcC,CAIlB,IAHAF,EAAEG,iBACFF,EAAeb,EAAEM,MACjBO,EAAaG,OACmC,kBAArCX,GAAcE,QAAQU,YACxBZ,EAAcE,QAAQU,WAAWZ,EAAeQ,EAAcD,GASvE,MALAE,GAAST,EAAcG,SAASU,KAAKb,EAAcE,QAAQI,cACvDN,EAAcc,mBACdL,EAAST,EAAce,qBAAqBN,GAC5CD,EAAeR,EAAcgB,yBAAyBR,EAAcC,IAEjET,EAAciB,KAAKR,EAAOS,MAAMV,MAiS/C,MA9RAZ,GAAcuB,UAAUF,KAAO,SAAUC,GAOrC,MALAjB,MAAKG,SAAU,EACfH,KAAKmB,WACLnB,KAAKoB,cACLpB,KAAKqB,aACLrB,KAAKsB,UAAUL,GACRjB,KAAKuB,QAEhB5B,EAAcuB,UAAUM,iBAAmB,WAEvC,GAAIhB,GAAQiB,EAAYC,EAAcC,EAAiBC,EAAQC,CAkC/D,OAjCAF,GAAkB3B,KAAKC,QAAQ0B,iBAAmB,iFAClDD,EAAe,SAAUI,EAAQC,EAASC,GAOtC,MAAO,yIALM,IAATA,EACkB,eAAiBF,EAAS,UAAYH,EAAkB,KAExD,SAAWG,EAAS,MAEwH,YAAcC,EAAU,sBAE1L/B,KAAKC,QAAQgC,OACbJ,EAAQnC,EAAEwC,IAAIlC,KAAKC,QAAQgC,OAAQ,SAAUE,GACzC,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L,EAASA,EAAOmG,OAAO,WAC1B,GAAIC,EAEJ,OADAA,GAAQlH,EAAEM,OACF4G,EAAMC,SAAS,iBAA6D,IAA1CD,EAAME,QAAQ,iBAAiBlF,SALlEpB,GAQfb,EAAcuB,UAAUH,yBAA2B,SAAUR,EAAcC,GACvE,GAAIqF,EACJ,OAAK7F,MAAKa,kBAGLN,EAAawG,QAAQ,gBAAgBF,SAAS,iBAGnDhB,EAAOtF,EAAaqF,KAAK,QAClBpF,EAAOmG,OAAO,WACjB,MAAOjH,GAAEM,MAAM4F,KAAK,UAAYC,IACjCmB,SARQzG,GAUfZ,EAAcuB,UAAUL,eAAiB,WACrC,MAAOb,MAAKE,SAAS2G,SAAS,iBAE3BlH,KAEXC,GACIgD,WAAY,iBACZ8B,eAAe,EACfO,sBAAsB,EACtBiB,eAAgB,IAChB7F,aAAc,IACdsE,oBAAoB,EACpBpC,KAAK,EACLR,SAAS,EACTc,gBAAiB,UACjBZ,QAAQ,EACRsB,SACAG,eAAe,EACfT,SAAWC,YAAa,gEACxBvC,WAAY,KACZ6D,eAAgB,GAChBxC,MAAM,GAEVtC,EAAEuH,GAAGlH,cAAgB,SAAUE,GAM3B,MAJAA,GAAUP,EAAE8D,UAAW5D,EAAUK,GACjCP,EAAEM,MAAMkH,KAAK,WACT,MAAOlH,MAAKD,cAAgB,GAAIJ,GAAcK,KAAMC,KAEjDD,MAEXN,EAAEuH,GAAGE,gBAAkB,WAEnB,MAAOzH,GAAEM,MAAMyD,QAAQ,yBAAyByD,KAAK,WACjD,MAAOlH,MAAKD,cAAgB,SAGtCqH","file":"slick-lightbox.min.js","sourceRoot":"/home/petr/work/slick-lightbox"}
\ No newline at end of file
+{"version":3,"sources":["dist/slick-lightbox.js"],"names":["$","SlickLightbox","defaults","element","options1","slickLightbox","this","options","$element","didInit","on","itemSelector","e","$clickedItem","$items","preventDefault","blur","shouldOpen","find","elementIsSlick","filterOutSlickClones","handlePossibleCloneClick","init","index","prototype","detectIE","createModal","bindEvents","initSlick","open","createModalItems","createItem","itemTemplate","lazyPlaceholder","length","links","source","caption","lazy","images","map","_this","img","el","info","src","getElementCaption","getElementSrc","html","isIE","background","captionPosition","join","$modalElement","$parts","layouts","closeButton","append","additional","initialSlide","lazyLoad","slick","extend","trigger","useHistoryApi","writeHistory","setTimeout","getTransitionDuration","removeClass","close","addClass","destroy","resizeSlides","h","height","css","Math","round","imageMaxHeight","window","closeOnEscape","navigateByKeyboard","document","code","keyCode","which","slideSlick","closeOnBackdropClick","stopPropagation","direction","test","navigator","userAgent","Number","RegExp","$1","data","call","attr","href","unbindEvents","off","unbindAnchors","remove","destroyTimeout","destroyPrevious","children","duration","transitionDuration","indexOf","parseFloat","history","pushState","filter","$item","hasClass","parents","closest","first","fn","each","unslickLightbox","jQuery"],"mappings":"AAAA,cACC,SAAUA,GACP,GAAIC,GAAeC,CACnBD,GAAgB,WAIZ,QAASA,GAAcE,EAASC,GAC5B,GAAIC,EACJC,MAAKC,QAAUH,EAEfE,KAAKE,SAAWR,EAAEG,GAClBG,KAAKG,SAAU,EACfJ,EAAgBC,KAChBA,KAAKE,SAASE,GAAG,sBAAuBJ,KAAKC,QAAQI,aAAc,SAAUC,GACzE,GAAIC,GAAcC,CAIlB,IAHAF,EAAEG,iBACFF,EAAeb,EAAEM,MACjBO,EAAaG,OACmC,kBAArCX,GAAcE,QAAQU,YACxBZ,EAAcE,QAAQU,WAAWZ,EAAeQ,EAAcD,GASvE,MALAE,GAAST,EAAcG,SAASU,KAAKb,EAAcE,QAAQI,cACvDN,EAAcc,mBACdL,EAAST,EAAce,qBAAqBN,GAC5CD,EAAeR,EAAcgB,yBAAyBR,EAAcC,IAEjET,EAAciB,KAAKR,EAAOS,MAAMV,MAiS/C,MA9RAZ,GAAcuB,UAAUF,KAAO,SAAUC,GAOrC,MALAjB,MAAKG,SAAU,EACfH,KAAKmB,WACLnB,KAAKoB,cACLpB,KAAKqB,aACLrB,KAAKsB,UAAUL,GACRjB,KAAKuB,QAEhB5B,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AAEuH,GAAGE,gBAAkB,WAEnB,MAAOzH,GAAEM,MAAMyD,QAAQ,yBAAyByD,KAAK,WACjD,MAAOlH,MAAKD,cAAgB,SAGtCqH","file":"slick-lightbox.min.js","sourceRoot":"/mnt/data/loges/workspace/loge5-slick-lightbox"}
\ No newline at end of file
diff --git a/src/scripts/slick-lightbox.coffee b/src/scripts/slick-lightbox.coffee
index 07e45a8..258a85b 100644
--- a/src/scripts/slick-lightbox.coffee
+++ b/src/scripts/slick-lightbox.coffee
@@ -65,7 +65,7 @@ class SlickLightbox
if @options.images
links = $.map @options.images, (img) =>
- itemTemplate(img, @options.lazy)
+ itemTemplate(img, '', @options.lazy)
else
$items = @filterOutSlickClones(@$element.find(@options.itemSelector))