2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
8 (function ($, Drupal) {
9 Drupal.behaviors.bookDetailsSummaries = {
10 attach: function attach(context) {
11 $(context).find('.book-outline-form').drupalSetSummary(function (context) {
12 var $select = $(context).find('.book-title-select');
13 var val = $select.val();
16 return Drupal.t('Not in book');
17 } else if (val === 'new') {
18 return Drupal.t('New book');
21 return Drupal.checkPlain($select.find(':selected').text());