Properly close the lightbox when clicking on a link in it.
Fix a bug reported by le_ on MobileRead (http://www.mobileread.com/forums/showpost.php?p=2580757&postcount=525)
This commit is contained in:
parent
8e94fb8a1f
commit
4aa3529131
5
util.js
5
util.js
|
@ -309,6 +309,11 @@ function link_Clicked (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var url = currentLink.attr('href');
|
var url = currentLink.attr('href');
|
||||||
|
|
||||||
|
if ($(".mfp-ready").length)
|
||||||
|
{
|
||||||
|
$.magnificPopup.close();
|
||||||
|
}
|
||||||
|
|
||||||
// The bookdetail / about should be displayed in a lightbox
|
// The bookdetail / about should be displayed in a lightbox
|
||||||
if (getCurrentOption ("use_fancyapps") === "1" &&
|
if (getCurrentOption ("use_fancyapps") === "1" &&
|
||||||
(currentLink.hasClass ("fancydetail") || currentLink.hasClass ("fancyabout"))) {
|
(currentLink.hasClass ("fancydetail") || currentLink.hasClass ("fancyabout"))) {
|
||||||
|
|
Loading…
Reference in a new issue