codecomputerlove/PhotoSwipe — Issue #281: External Link from bottom toolbar
Author: jpats
Created: 2012-02-27 00:10:05+00:00
State: open

Hi! I have a novice question here. I have been trying to make the external link work from the bottom toolbar but for some reason I am not successful. I have used the code below which I found from the solved issues and adding the code to example 9. Please help.

getToolbar: function (){
return '

GoogleYahoo

'; },

}(window, window.Code.PhotoSwipe));

photoSwipe.addEventHandler(Code.PhotoSwipe.EventTypes.onShow, function(e){
var pageLinks = window.document.querySelectorAll('.page-link');
for(i = 0; i < pageLinks.length; i++) {
Code.Util.Events.add(pageLinks[i], 'click', function(e2) {
Code.PhotoSwipe.activeInstance.carousel.show($(e2.target).data('page'));
});