mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
28 lines
591 B
JavaScript
28 lines
591 B
JavaScript
$(function()
|
|
{
|
|
$('.datetimepicker').datetimepicker(
|
|
{
|
|
format: 'YYYY-MM-DD HH:mm:ss',
|
|
buttons: {
|
|
showToday: true,
|
|
showClose: true
|
|
},
|
|
calendarWeeks: true,
|
|
maxDate: moment(),
|
|
locale: moment.locale(),
|
|
defaultDate: moment().format('YYYY-MM-DD HH:mm:ss'),
|
|
icons: {
|
|
time: 'far fa-clock',
|
|
date: 'far fa-calendar',
|
|
up: 'fas fa-arrow-up',
|
|
down: 'fas fa-arrow-down',
|
|
previous: 'fas fa-chevron-left',
|
|
next: 'fas fa-chevron-right',
|
|
today: 'fas fa-calendar-check',
|
|
clear: 'far fa-trash-alt',
|
|
close: 'far fa-times-circle'
|
|
},
|
|
sideBySide: true
|
|
});
|
|
});
|