summaryrefslogtreecommitdiff
path: root/modules/system/system.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.js')
-rw-r--r--modules/system/system.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/system/system.js b/modules/system/system.js
index 3422cd879..876537783 100644
--- a/modules/system/system.js
+++ b/modules/system/system.js
@@ -113,6 +113,19 @@ Drupal.behaviors.dateTime = {
};
/**
+ * Show/hide settings for user configurable time zones depending on whether
+ * users are able to set their own time zones or not.
+ */
+Drupal.behaviors.userTimeZones = {
+ attach: function (context, settings) {
+ $('#empty-timezone-message-wrapper .description').hide();
+ $('#edit-configurable-timezones', context).change(function () {
+ $('#empty-timezone-message-wrapper').toggle();
+ });
+ },
+};
+
+/**
* Show the powered by Drupal image preview
*/
Drupal.behaviors.poweredByPreview = {