summaryrefslogtreecommitdiff
path: root/misc/timezone.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-27 20:19:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-27 20:19:38 +0000
commitfc7283235bb9e5ae4300714d03c0bf3723f4792b (patch)
tree0dc443ba5dc1f74fbfc5ad5762c7c7a556232b73 /misc/timezone.js
parent031ba7d66533b3bb6e1ceb1cc834e9af9b1a3c71 (diff)
downloadbrdo-fc7283235bb9e5ae4300714d03c0bf3723f4792b.tar.gz
brdo-fc7283235bb9e5ae4300714d03c0bf3723f4792b.tar.bz2
#444402 follow-up by kkaefer: Fix autocomplete, enforce code style for anonymous JS functions.
Diffstat (limited to 'misc/timezone.js')
-rw-r--r--misc/timezone.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/timezone.js b/misc/timezone.js
index c4ababfad..a1e689c92 100644
--- a/misc/timezone.js
+++ b/misc/timezone.js
@@ -1,12 +1,12 @@
// $Id$
-(function($) {
+(function ($) {
/**
* Set the client's system time zone as default values of form fields.
*/
Drupal.behaviors.setTimezone = {
- attach: function(context, settings) {
- $('select.timezone-detect:not(.timezone-processed)', context).addClass('timezone-processed').each(function() {
+ 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
// abbreviation, between 3 and 5 letters enclosed in parentheses,
@@ -54,7 +54,7 @@ Drupal.behaviors.setTimezone = {
url: settings.basePath,
data: { q: path, date: dateString },
dataType: 'json',
- success: function(data) {
+ success: function (data) {
if (data) {
$(element).val(data);
}