diff options
Diffstat (limited to 'web_src/js/features/datetimepicker.js')
-rw-r--r-- | web_src/js/features/datetimepicker.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web_src/js/features/datetimepicker.js b/web_src/js/features/datetimepicker.js new file mode 100644 index 0000000000..fb9a75a57a --- /dev/null +++ b/web_src/js/features/datetimepicker.js @@ -0,0 +1,8 @@ +export default async function initDateTimePicker(locale) { + await Promise.all([ + import(/* webpackChunkName: "datetimepicker" */'jquery-datetimepicker'), + import(/* webpackChunkName: "datetimepicker" */'jquery-datetimepicker/build/jquery.datetimepicker.min.css'), + ]); + + $.datetimepicker.setLocale(locale); +} |