diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-27 20:19:38 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-27 20:19:38 +0000 |
commit | fc7283235bb9e5ae4300714d03c0bf3723f4792b (patch) | |
tree | 0dc443ba5dc1f74fbfc5ad5762c7c7a556232b73 /modules/node/node.js | |
parent | 031ba7d66533b3bb6e1ceb1cc834e9af9b1a3c71 (diff) | |
download | brdo-fc7283235bb9e5ae4300714d03c0bf3723f4792b.tar.gz brdo-fc7283235bb9e5ae4300714d03c0bf3723f4792b.tar.bz2 |
#444402 follow-up by kkaefer: Fix autocomplete, enforce code style for anonymous JS functions.
Diffstat (limited to 'modules/node/node.js')
-rw-r--r-- | modules/node/node.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/node/node.js b/modules/node/node.js index 59647b34e..4a0c49d63 100644 --- a/modules/node/node.js +++ b/modules/node/node.js @@ -1,26 +1,26 @@ // $Id$ -(function($) { +(function ($) { Drupal.behaviors.nodeFieldsetSummaries = { - attach: function(context) { - $('fieldset#edit-revision-information', context).setSummary(function(context) { + attach: function (context) { + $('fieldset#edit-revision-information', context).setSummary(function (context) { return $('#edit-revision', context).is(':checked') ? Drupal.t('New revision') : Drupal.t('No revision'); }); - $('fieldset#edit-author', context).setSummary(function(context) { + $('fieldset#edit-author', context).setSummary(function (context) { var name = $('#edit-name').val(), date = $('#edit-date').val(); return date ? Drupal.t('By @name on @date', { '@name': name, '@date': date }) : Drupal.t('By @name', { '@name': name }); }); - $('fieldset#edit-options', context).setSummary(function(context) { + $('fieldset#edit-options', context).setSummary(function (context) { var vals = []; - $('input:checked', context).parent().each(function() { + $('input:checked', context).parent().each(function () { vals.push(Drupal.checkPlain($.trim($(this).text()))); }); |