diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-14 13:46:20 -0500 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-14 13:46:20 -0500 |
commit | 476843c25e4da2ac1c6c375b2ee6e2c0f97275ff (patch) | |
tree | e6f669d2c3bf52ec814276050db4ffcb45b32d50 /modules/user | |
parent | 5251e90c982b867d4bc25386b30f098f365cd52c (diff) | |
download | brdo-476843c25e4da2ac1c6c375b2ee6e2c0f97275ff.tar.gz brdo-476843c25e4da2ac1c6c375b2ee6e2c0f97275ff.tar.bz2 |
Issue #1346914 by droplet: Use .length instead of jQuery.size().
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.js b/modules/user/user.js index 73af27e5d..042668d81 100644 --- a/modules/user/user.js +++ b/modules/user/user.js @@ -180,7 +180,7 @@ Drupal.behaviors.fieldUserRegistration = { attach: function (context, settings) { var $checkbox = $('form#field-ui-field-edit-form input#edit-instance-settings-user-register-form'); - if ($checkbox.size()) { + if ($checkbox.length) { $('input#edit-instance-required', context).once('user-register-form-checkbox', function () { $(this).bind('change', function (e) { if ($(this).attr('checked')) { |