Skip to content
Snippets Groups Projects
Commit 545d755a authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

It seems to work

parent 63de4370
No related branches found
No related tags found
1 merge request!42Filtering by type.
...@@ -82,14 +82,14 @@ container.block_list.flex.flex_espace ...@@ -82,14 +82,14 @@ container.block_list.flex.flex_espace
div.tabs.flex_espace div.tabs.flex_espace
div(class='tablink filter_by_type active', onclick="openFakeTab(this)") div(class='tablink filter_by_type active', onclick="openFakeTab(this)")
sib-display#type1( sib-display#type1(
data-src="https://api.coopstarter.happy-dev.fr/types/1/" data-src=`${endpoints.types}1/`
fields='name' fields='name'
widget-name='fake-tabs' widget-name='fake-tabs'
) )
div(class='tablink filter_by_type', onclick="openFakeTab(this)") div(class='tablink filter_by_type', onclick="openFakeTab(this)")
sib-display#type2( sib-display#type2(
data-src="https://api.coopstarter.happy-dev.fr/types/2/" data-src=`${endpoints.types}2/`
fields='name' fields='name'
widget-name='fake-tabs' widget-name='fake-tabs'
) )
......
...@@ -193,7 +193,6 @@ jQuery(document).ready(function($) { ...@@ -193,7 +193,6 @@ jQuery(document).ready(function($) {
for (let tab of tabs) { for (let tab of tabs) {
tab.addEventListener("click", function() { tab.addEventListener("click", function() {
if (tab.classList.contains("active")) { if (tab.classList.contains("active")) {
//Fullfill hidden field //Fullfill hidden field
let type_field_search = tab let type_field_search = tab
.querySelector(`sib-display`) .querySelector(`sib-display`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment