Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / locale / locale.datepicker.js
index a952ade320e7019065672973d57b3e57fc65d18d..927bbc8e92145afc886092d9baec680506bbb569 100644 (file)
@@ -1,82 +1,23 @@
 /**
- * @file
- * Datepicker JavaScript for the Locale module.
- */
+* DO NOT EDIT THIS FILE.
+* See the following change record for more information,
+* https://www.drupal.org/node/2815083
+* @preserve
+**/
 
 (function ($, Drupal, drupalSettings) {
-
-  'use strict';
-
-  /**
-   * Attaches language support to the jQuery UI datepicker component.
-   *
-   * @type {Drupal~behavior}
-   */
   Drupal.behaviors.localeDatepicker = {
-    attach: function (context, settings) {
-      // This code accesses drupalSettings and localized strings via Drupal.t().
-      // So this code should run after these are initialized. By placing it in an
-      // attach behavior this is assured.
+    attach: function attach(context, settings) {
       $.datepicker.regional['drupal-locale'] = $.extend({
         closeText: Drupal.t('Done'),
         prevText: Drupal.t('Prev'),
         nextText: Drupal.t('Next'),
         currentText: Drupal.t('Today'),
-        monthNames: [
-          Drupal.t('January', {}, {context: 'Long month name'}),
-          Drupal.t('February', {}, {context: 'Long month name'}),
-          Drupal.t('March', {}, {context: 'Long month name'}),
-          Drupal.t('April', {}, {context: 'Long month name'}),
-          Drupal.t('May', {}, {context: 'Long month name'}),
-          Drupal.t('June', {}, {context: 'Long month name'}),
-          Drupal.t('July', {}, {context: 'Long month name'}),
-          Drupal.t('August', {}, {context: 'Long month name'}),
-          Drupal.t('September', {}, {context: 'Long month name'}),
-          Drupal.t('October', {}, {context: 'Long month name'}),
-          Drupal.t('November', {}, {context: 'Long month name'}),
-          Drupal.t('December', {}, {context: 'Long month name'})
-        ],
-        monthNamesShort: [
-          Drupal.t('Jan'),
-          Drupal.t('Feb'),
-          Drupal.t('Mar'),
-          Drupal.t('Apr'),
-          Drupal.t('May'),
-          Drupal.t('Jun'),
-          Drupal.t('Jul'),
-          Drupal.t('Aug'),
-          Drupal.t('Sep'),
-          Drupal.t('Oct'),
-          Drupal.t('Nov'),
-          Drupal.t('Dec')
-        ],
-        dayNames: [
-          Drupal.t('Sunday'),
-          Drupal.t('Monday'),
-          Drupal.t('Tuesday'),
-          Drupal.t('Wednesday'),
-          Drupal.t('Thursday'),
-          Drupal.t('Friday'),
-          Drupal.t('Saturday')
-        ],
-        dayNamesShort: [
-          Drupal.t('Sun'),
-          Drupal.t('Mon'),
-          Drupal.t('Tue'),
-          Drupal.t('Wed'),
-          Drupal.t('Thu'),
-          Drupal.t('Fri'),
-          Drupal.t('Sat')
-        ],
-        dayNamesMin: [
-          Drupal.t('Su'),
-          Drupal.t('Mo'),
-          Drupal.t('Tu'),
-          Drupal.t('We'),
-          Drupal.t('Th'),
-          Drupal.t('Fr'),
-          Drupal.t('Sa')
-        ],
+        monthNames: [Drupal.t('January', {}, { context: 'Long month name' }), Drupal.t('February', {}, { context: 'Long month name' }), Drupal.t('March', {}, { context: 'Long month name' }), Drupal.t('April', {}, { context: 'Long month name' }), Drupal.t('May', {}, { context: 'Long month name' }), Drupal.t('June', {}, { context: 'Long month name' }), Drupal.t('July', {}, { context: 'Long month name' }), Drupal.t('August', {}, { context: 'Long month name' }), Drupal.t('September', {}, { context: 'Long month name' }), Drupal.t('October', {}, { context: 'Long month name' }), Drupal.t('November', {}, { context: 'Long month name' }), Drupal.t('December', {}, { context: 'Long month name' })],
+        monthNamesShort: [Drupal.t('Jan'), Drupal.t('Feb'), Drupal.t('Mar'), Drupal.t('Apr'), Drupal.t('May'), Drupal.t('Jun'), Drupal.t('Jul'), Drupal.t('Aug'), Drupal.t('Sep'), Drupal.t('Oct'), Drupal.t('Nov'), Drupal.t('Dec')],
+        dayNames: [Drupal.t('Sunday'), Drupal.t('Monday'), Drupal.t('Tuesday'), Drupal.t('Wednesday'), Drupal.t('Thursday'), Drupal.t('Friday'), Drupal.t('Saturday')],
+        dayNamesShort: [Drupal.t('Sun'), Drupal.t('Mon'), Drupal.t('Tue'), Drupal.t('Wed'), Drupal.t('Thu'), Drupal.t('Fri'), Drupal.t('Sat')],
+        dayNamesMin: [Drupal.t('Su'), Drupal.t('Mo'), Drupal.t('Tu'), Drupal.t('We'), Drupal.t('Th'), Drupal.t('Fr'), Drupal.t('Sa')],
         dateFormat: Drupal.t('mm/dd/yy'),
         firstDay: 0,
         isRTL: 0
@@ -84,5 +25,4 @@
       $.datepicker.setDefaults($.datepicker.regional['drupal-locale']);
     }
   };
-
-})(jQuery, Drupal, drupalSettings);
+})(jQuery, Drupal, drupalSettings);
\ No newline at end of file