updated core to 8.6.1 via composer

This commit is contained in:
2018-09-12 13:58:26 +02:00
parent a9a219f2ed
commit ea56b9fba3
4443 changed files with 112098 additions and 40708 deletions
+5 -3
View File
@@ -3,7 +3,7 @@
* Timezone detection.
*/
(function ($, Drupal) {
(function($, Drupal) {
/**
* Set the client's system time zone as default values of form fields.
*
@@ -11,7 +11,9 @@
*/
Drupal.behaviors.setTimezone = {
attach(context, settings) {
const $timezone = $(context).find('.timezone-detect').once('timezone');
const $timezone = $(context)
.find('.timezone-detect')
.once('timezone');
if ($timezone.length) {
const dateString = Date();
// In some client environments, date strings include a time zone
@@ -69,4 +71,4 @@
}
},
};
}(jQuery, Drupal));
})(jQuery, Drupal);