E
E
Eugene2017-02-16 03:51:30
JavaScript
Eugene, 2017-02-16 03:51:30

How to close the current modal window in fancybox3 when another one is opened from it?

Hello. Actually a question in a subject. I didn't find anything in Google, Application $.fancybox.close(); closes the opening popup.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Chernenkov, 2020-02-14
@dragonesis

To do this, there is an option "closeExisting", by default it is "false"

// Закрыть открытое окно, перед открытием нового (простите за тавтологию)
$.fancybox.defaults.closeExisting = true;

V
Vitaly Kirenkov, 2017-02-19
@DeLaVega

It will automatically close.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question