From dcd26b26240e2df43b8f670ee250f66ff934e581 Mon Sep 17 00:00:00 2001 From: "Pacific Islands Ocean Observing System (PacIOOS)" Date: Tue, 9 Sep 2014 14:12:59 -1000 Subject: [PATCH] allow filmstrip nav without filmstrip This allows a user to keep show_filmstrip_nav=true even when setting show_filmstrip=false, thereby keeping the navigation buttons (play, pause, next, previous) visible on top of the image panel even if the filmstrip is hidden. Otherwise, there are no play/pause buttons to control the animation. John Maurer Pacific Islands Ocean Observing System (PacIOOS) University of Hawaii at Manoa --- js/jquery.galleryview-3.0-dev.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/js/jquery.galleryview-3.0-dev.js b/js/jquery.galleryview-3.0-dev.js index 6330d6c..472c889 100644 --- a/js/jquery.galleryview-3.0-dev.js +++ b/js/jquery.galleryview-3.0-dev.js @@ -976,6 +976,20 @@ if (typeof Object.create !== 'function') { ); } } + else if (this.opts.show_filmstrip_nav) { + dom.gv_gallery.append( + dom.gv_navWrap.append( + dom.gv_navPrev, + (this.opts.enable_slideshow?dom.gv_navPlay:$('')), + dom.gv_navNext + ) + ); + dom.gv_navWrap.css( + { + zIndex: '99999' + } + ); + } if(this.opts.enable_overlays) { dom.gv_panelWrap.append(dom.gv_overlay,dom.gv_showOverlay); @@ -1076,4 +1090,4 @@ if (typeof Object.create !== 'function') { show_infobar: true, //BOOLEAN - flag to show or hide infobar infobar_opacity: 1 //FLOAT - transparency for info bar }; -})(jQuery); \ No newline at end of file +})(jQuery);