From 7c5aa0781086cb6d3f144bb919fb1e4dc9162830 Mon Sep 17 00:00:00 2001 From: rdrew Date: Fri, 16 Oct 2020 09:14:55 -0300 Subject: [PATCH 1/2] 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) { From 3e5bff1251c21a48dfb37b63af4e416c93dbf21b Mon Sep 17 00:00:00 2001 From: rdrew Date: Fri, 16 Oct 2020 09:26:05 -0300 Subject: [PATCH 2/2] fixed toc js --- js/js.js | 24 ++++++++++++------------ src/js/js.js | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/js/js.js b/js/js.js index 7b22dd2..078bf50 100644 --- a/js/js.js +++ b/js/js.js @@ -82,18 +82,18 @@ } }; - 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) { - - $('.field--name-field-journal-article-keywords').appendTo("#toc-sections"); - } - }; + 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) { + + $('.field--name-field-journal-article-keywords').appendTo("#toc-sections"); + } + }; Drupal.behaviors.slickSliderInit = { attach: function attach(context, settings) { diff --git a/src/js/js.js b/src/js/js.js index 7b22dd2..078bf50 100644 --- a/src/js/js.js +++ b/src/js/js.js @@ -82,18 +82,18 @@ } }; - 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) { - - $('.field--name-field-journal-article-keywords').appendTo("#toc-sections"); - } - }; + 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) { + + $('.field--name-field-journal-article-keywords').appendTo("#toc-sections"); + } + }; Drupal.behaviors.slickSliderInit = { attach: function attach(context, settings) {