PageSourceSearch

https://departement974.fr/core/misc/entity-form.js?v=9.4.8

js departement974.fr collected 2026-10-01 12:14:58 UTC 1,533 bytes, 38 lines download raw bytes

1/**
2* DO NOT EDIT THIS FILE.
3* See the following change record for more information,
4* https://www.drupal.org/node/2815083
5* @preserve
6**/
7
8(function ($, Drupal) {
9  Drupal.behaviors.entityContentDetailsSummaries = {
10    attach: function attach(context) {
11      var $context = $(context);
12      $context.find('.entity-content-form-revision-information').drupalSetSummary(function (context) {
13        var $revisionContext = $(context);
14        var revisionCheckbox = $revisionContext.find('.js-form-item-revision input');
15
16        if (revisionCheckbox.is(':checked') || !revisionCheckbox.length && $revisionContext.find('.js-form-item-revision-log textarea').length) {
17          return Drupal.t('New revision');
18        }
19
20        return Drupal.t('No revision');
21      });
22      $context.find('details.entity-translation-options').drupalSetSummary(function (context) {
23        var $translationContext = $(context);
24        var translate;
25        var $checkbox = $translationContext.find('.js-form-item-translation-translate input');
26
27        if ($checkbox.length) {
28          translate = $checkbox.is(':checked') ? Drupal.t('Needs to be updated') : Drupal.t('Does not need to be updated');
29        } else {
30          $checkbox = $translationContext.find('.js-form-item-translation-retranslate input');
31          translate = $checkbox.is(':checked') ? Drupal.t('Flag other translations as outdated') : Drupal.t('Do not flag other translations as outdated');
32        }
33
34        return translate;
35      });
36    }
37  };
38})(jQuery, Drupal);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.