Skip to content
Snippets Groups Projects

Issue #3394321: Recent removal of jQuery.is() results in undefined element errors in entity-embed.js

Open Issue #3394321: Recent removal of jQuery.is() results in undefined element errors in entity-embed.js
3 files
+ 12
9
Compare changes
  • Side-by-side
  • Inline

Files

+ 4
3
@@ -59,9 +59,10 @@
$checkbox = $translationContext.find(
'.js-form-item-translation-retranslate input',
);
translate = $checkbox[0].checked
? Drupal.t('Flag other translations as outdated')
: Drupal.t('Do not flag other translations as outdated');
translate =
$checkbox[0] && $checkbox[0].checked
? Drupal.t('Flag other translations as outdated')
: Drupal.t('Do not flag other translations as outdated');
}
return translate;
Loading