fix: avoid double execution of jQuery.ready

This commit is contained in:
Matthias Günter
2021-06-15 08:43:22 +02:00
committed by Veljko V
parent 99963240b5
commit 28eb7e2c07

View File

@@ -152,7 +152,7 @@ jQuery(($) => {
} }
}); });
$(() => { (() => {
$('.mailpoet_form').each((index, element) => { $('.mailpoet_form').each((index, element) => {
$(element).children('.mailpoet_paragraph, .mailpoet_form_image, .mailpoet_form_paragraph').last().addClass('last'); $(element).children('.mailpoet_paragraph, .mailpoet_form_image, .mailpoet_form_paragraph').last().addClass('last');
}); });
@@ -303,5 +303,5 @@ jQuery(($) => {
$('.mailpoet-manage-subscription').on('submit', () => { $('.mailpoet-manage-subscription').on('submit', () => {
$('.mailpoet-manage-subscription .mailpoet-submit-success').hide(); $('.mailpoet-manage-subscription .mailpoet-submit-success').hide();
}); });
}); })();
}); });