mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue