Open a Lightbox in a Featherlight.js Lightbox without double-click - Is it possible? -


i open featherlight lightbox html-content. content contains small pictures , use featherlight images show bigger sizes.

for example: added link image in ajax examples div http://noelboss.github.io/featherlight/

<div class="ajaxcontent lightbox">     <h2>this ligthbox loaded using ajax</h2>     <p>with <a href="https://github.com/noelboss/featherlight/#installation">little code</a>, can build lightboxes use custom content loaded ajax...</p><a class="btn btn-default" href="assets/images/droplets.jpg" data-featherlight="image">image</a> </div> 

when lightbox opens ihave double-click on image/button let open.

is possible open on first click?

example

assuming want open featherlight, , content of featherlight open nested featherlight (which seems odd tbh), can use afteropen callback, in can open nested featherlight using $.featherlight(...) or find('.my-button-or-something').trigger('click').

note when closing nested featherlight, first featherlight still opened.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -