Description
This is a PhotoSwipe error, maybe not an error, but a problem.
First, let me ask you why you want to have two buttons with the same properties? Button Back and your View All button will do the same.
Photoswipe will only improve the first appearance of the ps-toolbar-close class, all others will be ignored. To be the voices, I do not see the point in this decision. If the user wants more buttons, just let them have one.
This problem can be solved programmatically.
Decision
Working example: http://jsfiddle.net/Gajotres/nBZfT/
HTML:
<div class="ps-toolbar-close second-close" style="padding-top: 12px;">View All</div>
Javascript:
myPhotoSwipe.addEventHandler(window.Code.PhotoSwipe.EventTypes.onShow, function(e) { $(document).off('click', '.second-close').on('click', '.second-close', function(){ e.target.hide(); }); });
source share