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 6b4412cd4430c676b455a59ad320e418311eff72..fe8eca5019afa050c8f8cbbe764a53ba2610af4e 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 1997b5844d61339a57bb473b0dacbc464961f57e..7ed2b0c97c242c6006dec18a0ddfb3d60ebf6776 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 }) ); } });