diff --git a/src/includes/entrepreneur/resources/detail.pug b/src/includes/entrepreneur/resources/detail.pug index 4fa44af4bc54d2051f0891a000729148b237916a..dbb6ea52497ec51c93319f1752fcccdfcc212f92 100644 --- a/src/includes/entrepreneur/resources/detail.pug +++ b/src/includes/entrepreneur/resources/detail.pug @@ -116,7 +116,7 @@ include ../../components/widgets widget-name='cs-display-property' label-detail='' widget-detail='sib-action' - action-detail='mentor-resource-detail' + action-detail='entrepreneur-resource-detail' ) diff --git a/src/includes/public/resources/list.pug b/src/includes/public/resources/list.pug index ba13d1bf44e1cbf505687fad7e1ffdef21b35cdc..97f8d20a309e0a8b8d6754983f140501dc538f46 100644 --- a/src/includes/public/resources/list.pug +++ b/src/includes/public/resources/list.pug @@ -422,7 +422,6 @@ container.block_list.flex.flex_espace label-fields='' multiple-fields class="panel" - next='public-resource-detail' paginate-by="5" diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js index 2f43bc724231c9e91e2a0a11413422d0d76d7a15..c087e24c4864c3b27f8d6dc0039fb4f4015512db 100644 --- a/src/scripts/coopstarter.js +++ b/src/scripts/coopstarter.js @@ -66,19 +66,19 @@ function loadFile(event) { /** * Fill datas to a form. - * @param {HTMLElment} detail - Element with the datas to retrieve. + * @param {HTMLElment} element - Element with the datas to retrieve. * @param {string} targetFormName - Id of the form to fill. - * @param {string} inputName - Name of the input to fill. + * @param {string} inputName - Name of the input to fill in the form. */ -function linkDatasetToField(detail, targetFormName, inputName) { +function linkDatasetToField(element, targetFormName, inputName) { let targetForm = document.getElementById(targetFormName); targetForm.addEventListener("populate", event => { let resourceField = targetForm.querySelector(`input[name="${inputName}"]`); if (resourceField) { - resourceField.value = JSON.stringify({ "@id": detail.dataset.src }); + resourceField.value = JSON.stringify({ "@id": element.dataset.src }); resourceField.setAttribute( "value", - JSON.stringify({ "@id": detail.dataset.src }) + JSON.stringify({ "@id": element.dataset.src }) ); } });