Is PhotoSwipe JS compatible with JQuery Mobile v1.4.2? -
i've done heaps of testing on , i'm sure jquery mobile v1.4.2 not compatible latest version of photoswipe javascript library (or older versions).
i trying use jquery command photoswipe:
<script type="text/javascript"> (function(window, $, photoswipe){ $(document).ready(function(){ $('div.gallery-page') .live('pageshow', function(e){ var currentpage = $(e.target), options = {}, photoswipeinstance = $("ul.gallery a", e.target).photoswipe(options, currentpage.attr('id')); return true; }) .live('pagehide', function(e){ var currentpage = $(e.target), photoswipeinstance = photoswipe.getinstance(currentpage.attr('id')); if (typeof photoswipeinstance != "undefined" && photoswipeinstance != null) { photoswipe.detatch(photoswipeinstance); } return true; }); }); }(window, window.jquery, window.code.photoswipe)); </script> and works ok if using version of jquery mobile (javascript) comes photoswipe download package samples. when link jquery mobile v1.4.2 kills photoswipe js library , never fires/works, links straight image.
is else experiencing similar issue? if so, there decent workaround issue? or perhaps not doing right.
Comments
Post a Comment