Rename global variable to match the old code
[MAILPOET-2453]
This commit is contained in:
committed by
Rostislav Wolný
parent
12af14fd90
commit
3230bff824
@@ -17,7 +17,7 @@ export default () => {
|
|||||||
const dateSettingData = {
|
const dateSettingData = {
|
||||||
dateTypes: window.mailpoet_date_types,
|
dateTypes: window.mailpoet_date_types,
|
||||||
dateFormats: window.mailpoet_date_formats,
|
dateFormats: window.mailpoet_date_formats,
|
||||||
months: window.mailpoet_date_months,
|
months: window.mailpoet_month_names,
|
||||||
};
|
};
|
||||||
formData.settings.segments = formData.settings.segments ? formData.settings.segments : [];
|
formData.settings.segments = formData.settings.segments ? formData.settings.segments : [];
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
var mailpoet_custom_fields = <%= json_encode(custom_fields) %>;
|
var mailpoet_custom_fields = <%= json_encode(custom_fields) %>;
|
||||||
var mailpoet_date_types = <%= json_encode(date_types) %>;
|
var mailpoet_date_types = <%= json_encode(date_types) %>;
|
||||||
var mailpoet_date_formats = <%= json_encode(date_formats) %>;
|
var mailpoet_date_formats = <%= json_encode(date_formats) %>;
|
||||||
var mailpoet_date_months = <%= json_encode(month_names) %>;
|
var mailpoet_month_names = <%= json_encode(month_names) %>;
|
||||||
<% endautoescape %>
|
<% endautoescape %>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user