diff options
Diffstat (limited to 'modules/book/book.js')
-rw-r--r-- | modules/book/book.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/book/book.js b/modules/book/book.js index 66bb39288..c529e5821 100644 --- a/modules/book/book.js +++ b/modules/book/book.js @@ -4,8 +4,8 @@ Drupal.behaviors.bookFieldsetSummaries = { attach: function (context) { - $('fieldset#edit-book', context).drupalSetSummary(function (context) { - var val = $('#edit-book-bid').val(); + $('fieldset.book-form', context).drupalSetSummary(function (context) { + var val = $('.form-item-book-bid select').val(); if (val === '0') { return Drupal.t('Not in book'); @@ -14,7 +14,7 @@ Drupal.behaviors.bookFieldsetSummaries = { return Drupal.t('New book'); } else { - return Drupal.checkPlain($('#edit-book-bid :selected').text()); + return Drupal.checkPlain($('.form-item-book-bid select :selected').text()); } }); } |