Answer the question
In order to leave comments, you need to log in
Error opening fancybox window?
There is a site
When opening a modal window, opening any product and some clicks inside it (for example, drop-down tabs), this kind of error occurs and is added with each click.
jquery.fancybox.js:4594 Uncaught TypeError: instance.current.$content.find(...).addBack is not a
function
// Check where is clicked
if ($target.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")) {
where = "Outside";
} else if ($target.is(".fancybox-slide")) {
where = "Slide";
} else if (
instance.current.$content &&
instance.current.$content
.find($target)
.addBack()
.filter($target).length
) {
where = "Content";
} else {
return;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question