K
K
Konstantin Kudelko2016-05-04 11:00:04
JavaScript
Konstantin Kudelko, 2016-05-04 11:00:04

Why doesn't the link follow?

Guys, such a question, I made a modal window with a button, I hung an event on it so that it closes, but after closing it should follow the link, that is, search. When it is not in the modal, everything works, as soon as I open it in the modal, it does not go, why?

var fancy = $('.fancybox');
        fancy.fancybox();
        $(document).on('click', '.close_modal', function() {
            $.fancybox.close();
        });

Here is the button:
<button type = "submit" class = "btn close_modal"><TMPL_VAR lang_search></button>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question