Unverified Commit 3f59ee8a authored by Alex Pott's avatar Alex Pott
Browse files

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

(cherry picked from commit cddccd7d)
parent 950da2e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
+2 −2
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

(function ($, Modernizr, Drupal, once) {
(function (Modernizr, Drupal, once) {
  Drupal.behaviors.date = {
    attach: function attach(context, settings) {
      if (Modernizr.inputtypes.date === false) {
@@ -91,4 +91,4 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
        timeDesc = _ref2.timeDesc;
    return "<div class=\"no-native-datepicker-help\">\n       <span id=\"".concat(dateId, "\">").concat(dateDesc, "</span> <span id=\"").concat(timeId, "\">").concat(timeDesc, "</span>\n     </div>");
  };
})(jQuery, Modernizr, Drupal, once);
 No newline at end of file
})(Modernizr, Drupal, once);
 No newline at end of file