Issue #3255504 by anagomes, Chi, cilefen: Remove jQuery dependency from date.js

merge-requests/1222/head
Alex Pott 2021-12-30 11:36:13 +00:00
parent aa3434c4aa
commit 2b1f1431ca
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
* Polyfill for HTML5 date input.
*/
(function ($, Modernizr, Drupal, once) {
(function (Modernizr, Drupal, once) {
/**
* Attach datepicker fallback on date elements.
*
@ -151,4 +151,4 @@
`<div class="no-native-datepicker-help">
<span id="${dateId}">${dateDesc}</span> <span id="${timeId}">${timeDesc}</span>
</div>`;
})(jQuery, Modernizr, Drupal, once);
})(Modernizr, Drupal, once);

View File

@ -5,7 +5,7 @@
* @preserve
**/
(function ($, Modernizr, Drupal, once) {
(function (Modernizr, Drupal, once) {
Drupal.behaviors.date = {
attach(context, settings) {
if (Modernizr.inputtypes.date === false) {
@ -76,4 +76,4 @@
}) => `<div class="no-native-datepicker-help">
<span id="${dateId}">${dateDesc}</span> <span id="${timeId}">${timeDesc}</span>
</div>`;
})(jQuery, Modernizr, Drupal, once);
})(Modernizr, Drupal, once);