summaryrefslogtreecommitdiff
path: root/modules/file
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-14 13:46:20 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-14 13:46:20 -0500
commit476843c25e4da2ac1c6c375b2ee6e2c0f97275ff (patch)
treee6f669d2c3bf52ec814276050db4ffcb45b32d50 /modules/file
parent5251e90c982b867d4bc25386b30f098f365cd52c (diff)
downloadbrdo-476843c25e4da2ac1c6c375b2ee6e2c0f97275ff.tar.gz
brdo-476843c25e4da2ac1c6c375b2ee6e2c0f97275ff.tar.bz2
Issue #1346914 by droplet: Use .length instead of jQuery.size().
Diffstat (limited to 'modules/file')
-rw-r--r--modules/file/file.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/file/file.js b/modules/file/file.js
index 1071384f8..827374c0f 100644
--- a/modules/file/file.js
+++ b/modules/file/file.js
@@ -96,7 +96,7 @@ Drupal.file = Drupal.file || {
// Check if we're working with an "Upload" button.
var $enabledFields = [];
- if ($(this).parents('div.form-managed-file').size() > 0) {
+ if ($(this).parents('div.form-managed-file').length > 0) {
$enabledFields = $(this).parents('div.form-managed-file').find('input.form-file');
}
@@ -120,7 +120,7 @@ Drupal.file = Drupal.file || {
progressBar: function (event) {
var clickedButton = this;
var $progressId = $(clickedButton).parents('div.form-managed-file').find('input.file-progress');
- if ($progressId.size()) {
+ if ($progressId.length) {
var originalName = $progressId.attr('name');
// Replace the name with the required identifier.