diff --git a/core/modules/book/book.libraries.yml b/core/modules/book/book.libraries.yml index 2382e75..d2bd52d 100644 --- a/core/modules/book/book.libraries.yml +++ b/core/modules/book/book.libraries.yml @@ -12,9 +12,3 @@ navigation: css: theme: css/book.theme.css: {} - -admin: - version: VERSION - css: - theme: - css/book.admin.css: {} diff --git a/core/modules/book/book.module b/core/modules/book/book.module index 6368a73..04b6556 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -150,19 +150,12 @@ function book_form_node_form_alter(&$form, FormStateInterface $form_state, $form if ($access) { $collapsed = !($node->isNew() && !empty($node->book['pid'])); $form = \Drupal::service('book.manager')->addFormElements($form, $form_state, $node, $account, $collapsed); - // Since the "Book" dropdown can't trigger a form submission when - // JavaScript is disabled, add a submit button to do that. book.admin.css hides - // this button when JavaScript is enabled. + // The "js-hide" class hides submit button when Javascript is enabled $form['book']['pick-book'] = array( '#type' => 'submit', '#value' => t('Change book (update list of parents)'), '#submit' => array('book_pick_book_nojs_submit'), '#weight' => 20, - '#attached' => [ - 'library' => [ - 'book/admin', - ], - ], '#attributes' => array( 'class' => array( 'js-hide', diff --git a/core/themes/classy/templates/navigation/book-navigation.html.twig b/core/themes/classy/templates/navigation/book-navigation.html.twig index aa67696..4c59fa5 100644 --- a/core/themes/classy/templates/navigation/book-navigation.html.twig +++ b/core/themes/classy/templates/navigation/book-navigation.html.twig @@ -37,17 +37,17 @@