PDA

View Full Version : Display info (captions) on load, with close info option - to stop js hiding close but



Mark Ellis
03-03-2014, 11:25 AM
Been working on galleria. One can set the info (image captions) to be permanently displayed
showInfo:true; or to toggle info so that the visitor can click on the I to see the captions
toggleInfo:true; and click on the info-close button to close it

But if one only uses showInfo:true, (and not toggleInfo) then galleria displays the captions by default - but does not display the info-close x button - so you can't close the captions area.

So the question is, what changes are needed in the js for the info to be displayed on load, but to have the info-close button also displayed

I think the relevant js code in galleria.classic.js is


// toggle info
if ( options._toggleInfo === true ) {
info.bind( 'click:fast', function() {
info.toggle();
});
} else {
info.show();
this.$('info-link, info-close').hide();
}


The above is from galleria.classic.js

5397 5398

The classic theme is used on the top slideshow on this page www.dorsetdog.com/galleria-slide-trial-in-google-sites (http://www.dorsetdog.com/galleria-slide-trial-in-google-sites)

Any help greatly appreciated