Skip to content

Commit

Permalink
feat(shs-5693): attached files for tables in views
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari Nez committed Nov 30, 2024
1 parent 9b51bc6 commit 3991f05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ secondarymenu:
js:
dist/js/secondarytoggler.js: {}

tablepattern:
js:
dist/js/tablepattern.js: {}

tablescope:
js:
dist/js/tablescope.js: {}
Expand Down
1 change: 1 addition & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 3991f05

Please sign in to comment.