mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
photoswipe 애드온 사용시 본문 링크가 클릭이 되지않는 문제수정
https://www.xetown.com/contact/269784
This commit is contained in:
parent
4a26220890
commit
fe4900482c
1 changed files with 3 additions and 3 deletions
|
|
@ -63,9 +63,6 @@ var initPhotoSwipeFromDOM = function(gallerySelector) {
|
||||||
|
|
||||||
// triggers when user clicks on thumbnail
|
// triggers when user clicks on thumbnail
|
||||||
var onThumbnailsClick = function(e) {
|
var onThumbnailsClick = function(e) {
|
||||||
e = e || window.event;
|
|
||||||
e.preventDefault ? e.preventDefault() : e.returnValue = false;
|
|
||||||
|
|
||||||
var eTarget = e.target || e.srcElement;
|
var eTarget = e.target || e.srcElement;
|
||||||
|
|
||||||
// find root element of slide
|
// find root element of slide
|
||||||
|
|
@ -77,6 +74,9 @@ var initPhotoSwipeFromDOM = function(gallerySelector) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e = e || window.event;
|
||||||
|
e.preventDefault ? e.preventDefault() : e.returnValue = false;
|
||||||
|
|
||||||
// find index of clicked item by looping through all child nodes
|
// find index of clicked item by looping through all child nodes
|
||||||
// alternatively, you may define index via data- attribute
|
// alternatively, you may define index via data- attribute
|
||||||
var clickedGallery = $(clickedListItem).closest(gallerySelector).get(0),
|
var clickedGallery = $(clickedListItem).closest(gallerySelector).get(0),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue