S
S
snagovskiy2018-02-22 04:40:53
JavaScript
snagovskiy, 2018-02-22 04:40:53

Problem with opening Magnific Popup modal window, how to solve?

Ladies and gentlemen!

In Magnigic Popup, when you click on an image, a modal window opens for a split second, and then immediately the image itself at /images/***.jpg

Can you please tell me how to fix this?

5a8e1f919617c692275571.jpeg
5a8e1f99bfabf386880665.jpeg
5a8e1f9f7e70e482978714.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vvovas, 2018-02-22
@snagovskiy

Have you looked at the code? You have something like this:

$(document).ready(function(){ 
  var body = $("body"); 
  body.fadeIn(400); 
  $(document).on("click", "a:not([href^='#']):not([href^='tel']):not([href^='mailto'])", function(e) { 
  e.preventDefault(); 
  $("body").fadeOut(400); 
  var self = this;
  setTimeout(function () { 
    window.location.href = $(self).attr("href"); 
  }, 400); 
  });
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question