Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 539: | Line 539: | ||
groupedSources.forEach((group, gIndex) => { | groupedSources.forEach((group, gIndex) => { | ||
if (gIndex === groupedSources.length - 1) { out += '<div class="sources-collapse">'; } | // if (gIndex === groupedSources.length - 1) { out += '<div class="sources-collapse">'; } | ||
out += group.sources.reduce((prev, curr) => { | out += group.sources.reduce((prev, curr) => { | ||
const idx = val.findIndex(src => src === curr.name); | const idx = val.findIndex(src => src === curr.name); | ||
Line 555: | Line 555: | ||
if (gIndex === groupedSources.length - 1) { | if (gIndex === groupedSources.length - 1) { | ||
// out += '<span class="sources-collapse-toggle"></span>'; | // out += '<span class="sources-collapse-toggle"></span>'; | ||
out += '</div>'; | // out += '</div>'; | ||
} | } | ||
}); | }); |
Revision as of 13:01, 13 September 2022
Development verstion of the DCT List.
Not ready for production!