Remove unused proprty
[MAILPOET-3088]
This commit is contained in:
@@ -83,8 +83,6 @@ jQuery(($) => {
|
|||||||
|
|
||||||
function showForm(formDiv, showOverlay = false) {
|
function showForm(formDiv, showOverlay = false) {
|
||||||
const form = formDiv.find('form');
|
const form = formDiv.find('form');
|
||||||
const background = form.data('background-color');
|
|
||||||
formDiv.css('background-color', background || 'white');
|
|
||||||
let delay = form.data('delay');
|
let delay = form.data('delay');
|
||||||
delay = parseInt(delay, 10);
|
delay = parseInt(delay, 10);
|
||||||
if (Number.isNaN(delay)) {
|
if (Number.isNaN(delay)) {
|
||||||
|
@@ -156,7 +156,6 @@ class DisplayFormInWPContent {
|
|||||||
$templateData['delay'] = $formSettings['form_placement'][$displayType]['delay'] ?? 0;
|
$templateData['delay'] = $formSettings['form_placement'][$displayType]['delay'] ?? 0;
|
||||||
$templateData['position'] = $formSettings['form_placement'][$displayType]['position'] ?? '';
|
$templateData['position'] = $formSettings['form_placement'][$displayType]['position'] ?? '';
|
||||||
$templateData['animation'] = $formSettings['form_placement'][$displayType]['animation'] ?? '';
|
$templateData['animation'] = $formSettings['form_placement'][$displayType]['animation'] ?? '';
|
||||||
$templateData['backgroundColor'] = $formSettings['backgroundColor'] ?? '';
|
|
||||||
$templateData['fontFamily'] = $formSettings['font_family'] ?? '';
|
$templateData['fontFamily'] = $formSettings['font_family'] ?? '';
|
||||||
$templateData['enableExitIntent'] = false;
|
$templateData['enableExitIntent'] = false;
|
||||||
if (
|
if (
|
||||||
|
@@ -98,7 +98,6 @@ class PreviewPage {
|
|||||||
'delay' => 1,
|
'delay' => 1,
|
||||||
'position' => $formData['settings']['form_placement'][$formDisplayType]['position'] ?? '',
|
'position' => $formData['settings']['form_placement'][$formDisplayType]['position'] ?? '',
|
||||||
'animation' => $formData['settings']['form_placement'][$formDisplayType]['animation'] ?? '',
|
'animation' => $formData['settings']['form_placement'][$formDisplayType]['animation'] ?? '',
|
||||||
'backgroundColor' => $formData['settings']['backgroundColor'] ?? '',
|
|
||||||
'fontFamily' => $formData['settings']['font_family'] ?? '',
|
'fontFamily' => $formData['settings']['font_family'] ?? '',
|
||||||
];
|
];
|
||||||
$formPosition = $formData['settings']['form_placement'][$formDisplayType]['position'] ?? '';
|
$formPosition = $formData['settings']['form_placement'][$formDisplayType]['position'] ?? '';
|
||||||
|
@@ -45,7 +45,6 @@
|
|||||||
novalidate
|
novalidate
|
||||||
data-delay="<%= delay %>"
|
data-delay="<%= delay %>"
|
||||||
data-exit-intent-enabled="<%= enableExitIntent %>"
|
data-exit-intent-enabled="<%= enableExitIntent %>"
|
||||||
data-background-color="<%= backgroundColor %>"
|
|
||||||
data-font-family="<%= fontFamily %>"
|
data-font-family="<%= fontFamily %>"
|
||||||
>
|
>
|
||||||
<input type="hidden" name="data[form_id]" value="<%= form_id %>" />
|
<input type="hidden" name="data[form_id]" value="<%= form_id %>" />
|
||||||
|
Reference in New Issue
Block a user