From 7cd916f7ae3d55b8562df813d5c91b8d7f98e867 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Wed, 25 Jan 2017 13:14:14 +0000 Subject: [PATCH] Issue #2841767 by vaplas: Remove .size() replace with .length --- core/misc/entity-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/misc/entity-form.js b/core/misc/entity-form.js index f86c416e9d9..87253c90223 100644 --- a/core/misc/entity-form.js +++ b/core/misc/entity-form.js @@ -41,7 +41,7 @@ var translate; var $checkbox = $translationContext.find('.js-form-item-translation-translate input'); - if ($checkbox.size()) { + if ($checkbox.length) { translate = $checkbox.is(':checked') ? Drupal.t('Needs to be updated') : Drupal.t('Does not need to be updated'); } else {