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