diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-13 23:15:09 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-13 23:15:09 +0000 |
commit | b77475baf5eee88f7ca08adaf53c7c5eda6aca58 (patch) | |
tree | 4a1bf4029dc06956ceaa9c7373dbabb85e4dc3d0 /misc/timezone.js | |
parent | 35794257c39c915f15c23b968cd9edd166a12696 (diff) | |
download | brdo-b77475baf5eee88f7ca08adaf53c7c5eda6aca58.tar.gz brdo-b77475baf5eee88f7ca08adaf53c7c5eda6aca58.tar.bz2 |
#360081 by quicksketch: Stop using global variables for JavaScript settings.
Diffstat (limited to 'misc/timezone.js')
-rw-r--r-- | misc/timezone.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/timezone.js b/misc/timezone.js index db7c4560a..c877353af 100644 --- a/misc/timezone.js +++ b/misc/timezone.js @@ -5,7 +5,7 @@ * Set the client's system time zone as default values of form fields. */ Drupal.behaviors.setTimezone = { - attach: function(context) { + attach: function(context, settings) { $('select.timezone-detect:not(.timezone-processed)', context).addClass('timezone-processed').each(function() { var dateString = Date(); // In some client environments, date strings include a time zone @@ -51,7 +51,7 @@ Drupal.behaviors.setTimezone = { var element = this; $.ajax({ async: false, - url: Drupal.settings.basePath, + url: settings.basePath, data: { q: path, date: dateString }, dataType: 'json', success: function (data) { |