From fc7283235bb9e5ae4300714d03c0bf3723f4792b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 27 Apr 2009 20:19:38 +0000 Subject: #444402 follow-up by kkaefer: Fix autocomplete, enforce code style for anonymous JS functions. --- modules/comment/comment-node-form.js | 6 +++--- modules/comment/comment.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/comment') diff --git a/modules/comment/comment-node-form.js b/modules/comment/comment-node-form.js index 9c7dea7cc..20d8729f4 100644 --- a/modules/comment/comment-node-form.js +++ b/modules/comment/comment-node-form.js @@ -1,10 +1,10 @@ // $Id$ -(function($) { +(function ($) { Drupal.behaviors.commentFieldsetSummaries = { - attach: function(context) { - $('fieldset#edit-comment-settings', context).setSummary(function(context) { + attach: function (context) { + $('fieldset#edit-comment-settings', context).setSummary(function (context) { return Drupal.checkPlain($('input:checked', context).parent().text()); }); } diff --git a/modules/comment/comment.js b/modules/comment/comment.js index 3d2b92edd..bdd1c3b95 100644 --- a/modules/comment/comment.js +++ b/modules/comment/comment.js @@ -1,9 +1,9 @@ // $Id$ -(function($) { +(function ($) { Drupal.behaviors.comment = { - attach: function(context, settings) { - $.each(['name', 'homepage', 'mail'], function() { + attach: function (context, settings) { + $.each(['name', 'homepage', 'mail'], function () { var cookie = Drupal.comment.getCookie('comment_info_' + this); if (cookie) { $('#comment-form input[name=' + this + ']:not(.comment-processed)', context) @@ -16,7 +16,7 @@ Drupal.behaviors.comment = { Drupal.comment = {}; -Drupal.comment.getCookie = function(name) { +Drupal.comment.getCookie = function (name) { var search = name + '='; var returnValue = ''; -- cgit v1.2.3