1
1
Fork 0

Merge pull request #4545 from rabuzarus/20180304_-_localize_datepicker

localize the datepicker
This commit is contained in:
Hypolite Petovan 2018-03-04 09:07:31 -05:00 committed by GitHub
commit 3f739d53c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 () {
$('#id_{{$field.0}}').datetimepicker({
step: 5,
@ -17,6 +19,10 @@
dayOfWeekStart: {{$datetimepicker.firstDay}},
lang: '{{$datetimepicker.lang}}'
});
{{if $datetimepicker.lang}}
jQuery.datetimepicker.setLocale('{{$datetimepicker.lang}}');
{{/if}}
{{if $datetimepicker.minfrom }}
$('#id_{{$datetimepicker.minfrom}}').data('xdsoft_datetimepicker').setOptions({
onChangeDateTime: function (currentDateTime) {