]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1424940 - Support HTML5 datepicker
authorSebastin Santy <sebastinssanty@gmail.com>
Wed, 13 Dec 2017 17:05:48 +0000 (11:05 -0600)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2017 17:05:48 +0000 (11:05 -0600)
extensions/BugModal/template/en/default/bug_modal/field.html.tmpl
extensions/BugModal/template/en/default/bug_modal/header.html.tmpl

index d123ca696166a36070cba96271fe85504052a6d7..38bde1d01517b033e06ad47d57f9567586a7d973 100644 (file)
@@ -282,14 +282,14 @@ END;
 
         [% CASE constants.FIELD_TYPE_DATETIME %]
           [%# datetime %]
-          <input class="cf_datetime" name="[% name FILTER html %]" id="[% name FILTER html %]"
+          <input type="datetime-local" name="[% name FILTER html %]" id="[% name FILTER html %]"
             value="[% value FILTER html %]" [% aria_labelledby_html FILTER none %]>
           <img class="cf_datetime-img" id="[% name FILTER html %]-img"
             src="extensions/BugModal/web/calendar.png" width="16" height="16">
 
         [% CASE constants.FIELD_TYPE_DATE %]
           [%# date %]
-          <input class="cf_date" name="[% name FILTER html %]" id="[% name FILTER html %]"
+          <input type="date" name="[% name FILTER html %]" id="[% name FILTER html %]"
             value="[% value FILTER html %]" [% aria_labelledby_html FILTER none %]>
           <img class="cf_date-img" id="[% name FILTER html %]-img"
             src="extensions/BugModal/web/calendar.png" width="16" height="16">
index a91d1157638add559e79cf662a8144e10a4dc806..d92ad455d4f0dcc132f1e5cbedd724d09754fcb6 100644 (file)
@@ -60,7 +60,6 @@
     "js/util.js"
   );
   jquery.push(
-    "datetimepicker",
     "contextMenu",
     "visibility"
   );
@@ -68,7 +67,6 @@
     "extensions/BugModal/web/bug_modal.css",
     "extensions/BugModal/web/dropdown.css",
     "skins/standard/bug_groups.css",
-    "js/jquery/plugins/datetimepicker/datetimepicker.css",
     "js/jquery/plugins/contextMenu/contextMenu.css"
   );