mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 20:56:52 +08:00
77de460182
* Change the scope of the DatePicker datetime format in global activities [SCI-8600]
14 lines
423 B
JavaScript
14 lines
423 B
JavaScript
/* global I18n */
|
|
(function() {
|
|
$('.datetime-picker-container').each(function() {
|
|
const id = $(this).data('id');
|
|
if (id) {
|
|
const dt = $(`#calendar-${id}`);
|
|
const useCurrent = $(this).data('use-current');
|
|
const formatJS = $(this).data('datetime-picker-format');
|
|
dt.datetimepicker({
|
|
useCurrent, ignoreReadonly: true, locale: I18n.locale, format: formatJS
|
|
});
|
|
}
|
|
});
|
|
}());
|