From 78328c3129653bbe4ce8cb5454aa0b9f7236aa9f Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Mon, 26 Nov 2018 16:27:16 -0400 Subject: [PATCH] WIP --- bibcite_footnotes.module | 6 +++--- js/replace_citations.js | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bibcite_footnotes.module b/bibcite_footnotes.module index 9d890bc..5644401 100644 --- a/bibcite_footnotes.module +++ b/bibcite_footnotes.module @@ -13,7 +13,7 @@ use Drupal\bibcite_footnotes\CitationTools; use Drupal\bibcite_footnotes\Plugin\Filter\ReferenceFootnotesFilter; use Drupal\field\Entity\FieldConfig; use Drupal\core\Ajax\SettingsCommand; - +use Symfony\Component\HttpFoundation\Request; /** * Implements hook_theme(). @@ -212,7 +212,8 @@ function bibcite_footnotes_preprocess_bibcite_footnote_link(&$variables) { } -function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$form_state) { +function bibcite_footnotes_inline_entity_form_entity_form_alter(&$form, FormStateInterface &$form_state) { + $form['#save_entity'] = TRUE; $ief = $form_state->get('inline_entity_form'); if ($ief) { $serializer = \Drupal::service('serializer'); @@ -260,4 +261,3 @@ function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$for } } } - diff --git a/js/replace_citations.js b/js/replace_citations.js index 8c90a8d..55830e6 100644 --- a/js/replace_citations.js +++ b/js/replace_citations.js @@ -12,7 +12,6 @@ Drupal.behaviors.bibciteFootnotesReplaceCitations = { attach: function attach(context, settings) { - alert('got here'); if (CKEDITOR.instances) { for (var instance in CKEDITOR.instances) { var editor = CKEDITOR.instances[instance];