mirror of
https://github.com/friendica/friendica
synced 2024-11-19 22:23:40 +00:00
Merge pull request #4545 from rabuzarus/20180304_-_localize_datepicker
localize the datepicker
This commit is contained in:
commit
3f739d53c8
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
{{include file='field_input.tpl' field=$field}}<script type="text/javascript">
|
{{include file='field_input.tpl' field=$field}}
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
$(function () {
|
$(function () {
|
||||||
$('#id_{{$field.0}}').datetimepicker({
|
$('#id_{{$field.0}}').datetimepicker({
|
||||||
step: 5,
|
step: 5,
|
||||||
|
@ -17,6 +19,10 @@
|
||||||
dayOfWeekStart: {{$datetimepicker.firstDay}},
|
dayOfWeekStart: {{$datetimepicker.firstDay}},
|
||||||
lang: '{{$datetimepicker.lang}}'
|
lang: '{{$datetimepicker.lang}}'
|
||||||
});
|
});
|
||||||
|
{{if $datetimepicker.lang}}
|
||||||
|
jQuery.datetimepicker.setLocale('{{$datetimepicker.lang}}');
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{if $datetimepicker.minfrom }}
|
{{if $datetimepicker.minfrom }}
|
||||||
$('#id_{{$datetimepicker.minfrom}}').data('xdsoft_datetimepicker').setOptions({
|
$('#id_{{$datetimepicker.minfrom}}').data('xdsoft_datetimepicker').setOptions({
|
||||||
onChangeDateTime: function (currentDateTime) {
|
onChangeDateTime: function (currentDateTime) {
|
||||||
|
|
Loading…
Reference in a new issue