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/profile/profile.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/profile/profile.js')
-rw-r--r-- | modules/profile/profile.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/profile/profile.js b/modules/profile/profile.js index 334d71df6..9f52559f5 100644 --- a/modules/profile/profile.js +++ b/modules/profile/profile.js @@ -1,5 +1,5 @@ // $Id$ -(function($) { +(function ($) { /** * Add functionality to the profile drag and drop table. @@ -9,14 +9,14 @@ * a warning message when removing the last field from a profile category. */ Drupal.behaviors.profileDrag = { - attach: function(context, settings) { + attach: function (context, settings) { var table = $('#profile-fields'); var tableDrag = Drupal.tableDrag['profile-fields']; // Get the profile tableDrag object. // Add a handler for when a row is swapped, update empty categories. - tableDrag.row.prototype.onSwap = function(swappedRow) { + tableDrag.row.prototype.onSwap = function (swappedRow) { var rowObject = this; - $('tr.category-message', table).each(function() { + $('tr.category-message', table).each(function () { // If the dragged row is in this category, but above the message row, swap it down one space. if ($(this).prev('tr').get(0) == rowObject.element) { // Prevent a recursion problem when using the keyboard to move rows up. @@ -36,7 +36,7 @@ Drupal.behaviors.profileDrag = { }; // Add a handler so when a row is dropped, update fields dropped into new categories. - tableDrag.onDrop = function() { + tableDrag.onDrop = function () { dragObject = this; if ($(dragObject.rowObject.element).prev('tr').is('.category-message')) { var categoryRow = $(dragObject.rowObject.element).prev('tr').get(0); |