Add close icon

[MAILPOET-2741]
This commit is contained in:
Pavel Dohnal
2020-03-25 14:13:54 +01:00
committed by Veljko V
parent 149bb90245
commit fd0abffd3a
3 changed files with 20 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ jQuery(($) => {
}
$(() => {
$('.mailpoet_popup_close_icon').click((event) => {
const closeIcon = $(event.target);
closeIcon.parent().removeClass('active');
});
$('div.mailpoet_form_popup').each((index, element) => {
const formDiv = $(element);
const form = formDiv.find('form');