- $('body').once('translation-entity-admin-bind').on('click', 'table .bundle-settings .translatable :input', (e) => {
- const $target = $(e.target);
- const $bundleSettings = $target.closest('.bundle-settings');
- const $settings = $bundleSettings.nextUntil('.bundle-settings');
- const $fieldSettings = $settings.filter('.field-settings');
- if ($target.is(':checked')) {
- $bundleSettings.find('.operations :input[name$="[language_alterable]"]').prop('checked', true);
- $fieldSettings.find('.translatable :input').prop('checked', true);
- $settings.show();
- }
- else {
- $settings.hide();
- }
- })
- .on('click', 'table .field-settings .translatable :input', (e) => {
+ $('body')
+ .once('translation-entity-admin-bind')
+ .on('click', 'table .bundle-settings .translatable :input', e => {
+ const $target = $(e.target);
+ const $bundleSettings = $target.closest('.bundle-settings');
+ const $settings = $bundleSettings.nextUntil('.bundle-settings');
+ const $fieldSettings = $settings.filter('.field-settings');
+ if ($target.is(':checked')) {
+ $bundleSettings
+ .find('.operations :input[name$="[language_alterable]"]')
+ .prop('checked', true);
+ $fieldSettings.find('.translatable :input').prop('checked', true);
+ $settings.show();
+ } else {
+ $settings.hide();
+ }
+ })
+ .on('click', 'table .field-settings .translatable :input', e => {