diff --git a/core/modules/book/book.js b/core/modules/book/book.js index 5b953f1..075f33b 100644 --- a/core/modules/book/book.js +++ b/core/modules/book/book.js @@ -1,10 +1,10 @@ - (function ($) { Drupal.behaviors.bookFieldsetSummaries = { attach: function (context) { - $('fieldset.book-form', context).drupalSetSummary(function (context) { - var val = $('.form-item-book-bid select').val(); + $('fieldset.book-outline-form', context).drupalSetSummary(function (context) { + var $select = $('.form-item-book-bid select'); + var val = $select.val(); if (val === '0') { return Drupal.t('Not in book'); @@ -13,7 +13,7 @@ Drupal.behaviors.bookFieldsetSummaries = { return Drupal.t('New book'); } else { - return Drupal.checkPlain($('.form-item-book-bid select :selected').text()); + return Drupal.checkPlain($select.find(':selected').text()); } }); }