Pull to refresh

JS-библиотека Битрикс. BX.calendar

Столкнулся с проблемой отображения встроенного js-календаря Битрикс. Использую календарь в компоненте:

script.js

cardDate = $('.forward .date');
$('.forward').append('<input class="date--old" type="hidden" value="' + cardDate.html() + '" />');
cardDate.html('<input class="box__date" type="text" value="' + cardDate.html() + '" onclick="BX.calendar({node: this, field: this, bTime: false});"/>');


Проблема: не отображаются месяцы и дни недели

Решение. В компоненте необходимо подключить библиотеку date:

CJSCore::Init(array('date'));
Tags:
Hubs:
You can’t comment this publication because its author is not yet a full member of the community. You will be able to contact the author only after he or she has been invited by someone in the community. Until then, author’s username will be hidden by an alias.