mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 14:46:00 +08:00
1b34de37ef
CSP and inline js refactor [SCI-8118][SCI-8119]
13 lines
369 B
JavaScript
13 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
|
|
});
|
|
}
|
|
});
|
|
}());
|