mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°1053: Set the first day of the week on date/time picker to a language based setting
* Update moment.js * Add locales to moment.js * Align console & portal on the same moment.js library
This commit is contained in:
@@ -91,9 +91,10 @@ class BsSimpleFieldRenderer extends FieldRenderer
|
||||
$oOutput->AddHtml('<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>');
|
||||
$oOutput->AddHtml('</div>');
|
||||
$sJSFormat = json_encode($this->oField->GetJSDateTimeFormat());
|
||||
$sLocale = Dict::S('Portal:Calendar-FirstDayOfWeek');
|
||||
$oOutput->AddJs(
|
||||
<<<EOF
|
||||
$('#datepicker_{$this->oField->GetGlobalId()}').datetimepicker({format: $sJSFormat});
|
||||
$('#datepicker_{$this->oField->GetGlobalId()}').datetimepicker({format: $sJSFormat, locale: '$sLocale'});
|
||||
EOF
|
||||
);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user