From 628ee1d82ed4afdae8734801be85c57d9a525322 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 10 Jun 2020 20:35:27 +0200 Subject: Replace jquery-datetimepicker with native date input (#11684) This removes the jQuery plugin as well as the associated config options. Native input[type=date] does not require a language attribute as it is localized by default, except for the placeholder attribute for which I currently piggy-back the repo.issues.due_date_form localization option. Implementation should pretty much match GH. Of note is that Safari does not provide a UI for this input type, but I don't think providing one is neccessary and GH did not bother either. Co-authored-by: techknowlogick --- web_src/js/features/datetimepicker.js | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 web_src/js/features/datetimepicker.js (limited to 'web_src/js/features') diff --git a/web_src/js/features/datetimepicker.js b/web_src/js/features/datetimepicker.js deleted file mode 100644 index fb9a75a57a..0000000000 --- a/web_src/js/features/datetimepicker.js +++ /dev/null @@ -1,8 +0,0 @@ -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); -} -- cgit v1.2.3