mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-10 09:28:37 +08:00
14 lines
369 B
JavaScript
14 lines
369 B
JavaScript
|
/* global I18n formatJS */
|
||
|
(function() {
|
||
|
$('.datetime-picker-container').each(function() {
|
||
|
const id = $(this).data('id');
|
||
|
if (id) {
|
||
|
const dt = $(`#calendar-${id}`);
|
||
|
const useCurrent = $(this).data('use-current');
|
||
|
dt.datetimepicker({
|
||
|
useCurrent, ignoreReadonly: true, locale: I18n.locale, format: formatJS
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
}());
|