E
E
EVGenyK_ch2020-07-31 13:24:36
JavaScript
EVGenyK_ch, 2020-07-31 13:24:36

How to close custombox modal?

how to close custombox modal window after ajaxform msg event succses(successful form submission), fancybox closes simply ( $.fancybox.close(); )
found on off.source( dixso.github.io/custombox ) Custombox.modal.close()how to close window but doesn't work
Please help, what am I doing wrong?
the general is as follows:

$(document).ready(function() {
            AjaxForm.Message.success = function(message, sticky) {
                $.Custombox.modal.close();
            };
        });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2020-08-06
@EVGenyK_ch

Everything is described here:
https://docs.modx.pro/komponentyi/ajaxform#%D0%A1%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question