Skip to content

Commit 759cf80

Browse files
author
Hwashiang Yu
committed
MC-17400: Calendar template update
- Updated calendar template
1 parent 6801e95 commit 759cf80

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

app/code/Magento/Theme/view/frontend/templates/js/calendar.phtml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ require([
2020
//<![CDATA[
2121
$.extend(true, $, {
2222
calendarConfig: {
23-
dayNames: <?= $block->escapeJs($days['wide']) ?>,
24-
dayNamesMin: <?= $block->escapeJs($days['abbreviated']) ?>,
25-
monthNames: <?= $block->escapeJs($months['wide']) ?>,
26-
monthNamesShort: <?= $block->escapeJs($months['abbreviated']) ?>,
27-
infoTitle: "<?= $block->escapeJs(__('About the calendar')) ?>",
28-
firstDay: <?= $block->escapeJs($firstDay) ?>,
29-
closeText: "<?= $block->escapeJs(__('Close')) ?>",
30-
currentText: "<?= $block->escapeJs(__('Go Today')) ?>",
31-
prevText: "<?= $block->escapeJs(__('Previous')) ?>",
32-
nextText: "<?= $block->escapeJs(__('Next')) ?>",
33-
weekHeader: "<?= $block->escapeJs(__('WK')) ?>",
34-
timeText: "<?= $block->escapeJs(__('Time')) ?>",
35-
hourText: "<?= $block->escapeJs(__('Hour')) ?>",
36-
minuteText: "<?= $block->escapeJs(__('Minute')) ?>",
23+
dayNames: <?= /* @noEscape */ $days['wide'] ?>,
24+
dayNamesMin: <?= /* @noEscape */ $days['abbreviated'] ?>,
25+
monthNames: <?= /* @noEscape */ $months['wide'] ?>,
26+
monthNamesShort: <?= /* @noEscape */ $months['abbreviated'] ?>,
27+
infoTitle: "<?= /* @noEscape */ __('About the calendar') ?>",
28+
firstDay: <?= /* @noEscape */ $firstDay ?>,
29+
closeText: "<?= /* @noEscape */ __('Close') ?>",
30+
currentText: "<?= /* @noEscape */ __('Go Today') ?>",
31+
prevText: "<?= /* @noEscape */ __('Previous')) ?>",
32+
nextText: "<?= /* @noEscape */ __('Next') ?>",
33+
weekHeader: "<?= /* @noEscape */ __('WK') ?>",
34+
timeText: "<?= /* @noEscape */ __('Time') ?>",
35+
hourText: "<?= /* @noEscape */ __('Hour') ?>",
36+
minuteText: "<?= /* @noEscape */ __('Minute') ?>",
3737
dateFormat: $.datepicker.RFC_2822,
3838
showOn: "button",
3939
showAnim: "",

0 commit comments

Comments
 (0)