From 3991f051905ce27ddd82414298527af4b0c26552 Mon Sep 17 00:00:00 2001 From: Mari Nez Date: Fri, 29 Nov 2024 18:30:43 -0600 Subject: [PATCH] feat(shs-5693): attached files for tables in views --- docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml | 4 ++++ docroot/themes/humsci/humsci_basic/humsci_basic.theme | 1 + 2 files changed, 5 insertions(+) diff --git a/docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml b/docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml index 5b88efff1..a39a5b4f2 100644 --- a/docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml +++ b/docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml @@ -24,6 +24,10 @@ secondarymenu: js: dist/js/secondarytoggler.js: {} +tablepattern: + js: + dist/js/tablepattern.js: {} + tablescope: js: dist/js/tablescope.js: {} diff --git a/docroot/themes/humsci/humsci_basic/humsci_basic.theme b/docroot/themes/humsci/humsci_basic/humsci_basic.theme index 782afc0c1..7258828d3 100644 --- a/docroot/themes/humsci/humsci_basic/humsci_basic.theme +++ b/docroot/themes/humsci/humsci_basic/humsci_basic.theme @@ -221,6 +221,7 @@ function humsci_basic_preprocess_we_megamenu_frontend(&$vars) { function humsci_basic_preprocess_views_view(&$variables) { $view = $variables['view']; $variables['#attached']['library'][] = 'humsci_basic/tablewrap'; + $variables['#attached']['library'][] = 'humsci_basic/tablepattern'; switch ($view->id()) { case 'hs_default_search':