Display form on the correct position

[MAILPOET-2740]
This commit is contained in:
Pavel Dohnal
2020-04-08 15:34:15 +02:00
committed by Veljko V
parent 665e68824e
commit 18daadd3ec
2 changed files with 10 additions and 1 deletions

View File

@@ -59,6 +59,8 @@ jQuery(($) => {
function showForm(formDiv, showOverlay = false) {
const form = formDiv.find('form');
const position = form.data('position');
formDiv.addClass(`mailpoet_form_position_${position}`);
const background = form.data('background-color');
formDiv.css('background-color', background || 'white');
let delay = form.data('delay');