photoswipe 애드온 사용시 본문 링크가 클릭이 되지않는 문제수정

https://www.xetown.com/contact/269784
This commit is contained in:
conory 2016-04-28 14:48:34 +09:00
parent 4a26220890
commit fe4900482c

View file

@ -63,9 +63,6 @@ var initPhotoSwipeFromDOM = function(gallerySelector) {
// triggers when user clicks on thumbnail
var onThumbnailsClick = function(e) {
e = e || window.event;
e.preventDefault ? e.preventDefault() : e.returnValue = false;
var eTarget = e.target || e.srcElement;
// find root element of slide
@ -76,6 +73,9 @@ var initPhotoSwipeFromDOM = function(gallerySelector) {
if(!clickedListItem) {
return;
}
e = e || window.event;
e.preventDefault ? e.preventDefault() : e.returnValue = false;
// find index of clicked item by looping through all child nodes
// alternatively, you may define index via data- attribute