summaryrefslogtreecommitdiff
path: root/modules/file/file.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/file/file.js')
-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.