Invoke via code?
-
I am trying to override the double-tap behaviour of some mobile devices (mosdtly iphones) so that my image gallery lightboxes open on one click, but I am unsure what function to call in order to invoke the lightbox. I have the following:
jQuery(‘.gallery-item a’).on(‘click touchend’, function(e) {
var el = jQuery(this);
var link = el.attr(‘href’);
// the following redirects to a page, but I would like this to open the lightbox
window.location = link;
});What should I replace the window.location code with in order to make this happen?
Thank you in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Invoke via code?’ is closed to new replies.