Move properties directly to template
[MAILPOET-3088]
This commit is contained in:
@@ -83,14 +83,6 @@ jQuery(($) => {
|
||||
|
||||
function showForm(formDiv, showOverlay = false) {
|
||||
const form = formDiv.find('form');
|
||||
const position = form.data('position');
|
||||
formDiv.addClass(`mailpoet_form_position_${position}`);
|
||||
const animation = form.data('animation');
|
||||
if (animation !== '') {
|
||||
formDiv.addClass(`mailpoet_form_animation_${animation}`);
|
||||
formDiv.prev('.mailpoet_form_popup_overlay').addClass(`mailpoet_form_overlay_animation_${animation}`);
|
||||
formDiv.prev('.mailpoet_form_popup_overlay').addClass('mailpoet_form_overlay_animation');
|
||||
}
|
||||
const background = form.data('background-color');
|
||||
formDiv.css('background-color', background || 'white');
|
||||
let delay = form.data('delay');
|
||||
|
Reference in New Issue
Block a user