From 7c5aa0781086cb6d3f144bb919fb1e4dc9162830 Mon Sep 17 00:00:00 2001 From: rdrew Date: Fri, 16 Oct 2020 09:14:55 -0300 Subject: [PATCH] fixed toc js --- js/js.js | 7 ++++++- src/js/js.js | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/js/js.js b/js/js.js index d287267..7b22dd2 100644 --- a/js/js.js +++ b/js/js.js @@ -82,7 +82,12 @@ } }; - + Drupal.behaviors.article_collection_copier = { +- attach: function attach(context, settings) { +- +- $('.field--name-field-collection').appendTo("#toc-sections ol"); +- } +- }; Drupal.behaviors.article_keyword_copier = { attach: function attach(context, settings) { diff --git a/src/js/js.js b/src/js/js.js index d287267..7b22dd2 100644 --- a/src/js/js.js +++ b/src/js/js.js @@ -82,7 +82,12 @@ } }; - + Drupal.behaviors.article_collection_copier = { +- attach: function attach(context, settings) { +- +- $('.field--name-field-collection').appendTo("#toc-sections ol"); +- } +- }; Drupal.behaviors.article_keyword_copier = { attach: function attach(context, settings) {