From e27a26d0220f617c7e20318a51e66e51e56d0a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20PENHO=C3=8BT?= Date: Tue, 27 Oct 2020 16:06:24 +0100 Subject: [PATCH] =?UTF-8?q?Debug=20affichage=20infos=20questionnaire=20via?= =?UTF-8?q?=20id=20pass=C3=A9=20par=20l'url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/manageQuestionnaires.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/front/src/manageQuestionnaires.js b/front/src/manageQuestionnaires.js index 18ae4c7..4bd3dae 100644 --- a/front/src/manageQuestionnaires.js +++ b/front/src/manageQuestionnaires.js @@ -487,7 +487,7 @@ const showNextQuestionnaires = (token) => document.getElementById("questionnaire_"+response.questionnaires[i].id).addEventListener("click", function(e) { e.preventDefault(); - showFormQuestionnaireInfos(e.target.id.split("_")[1], user.token); + showFormQuestionnaireInfos(e.target.id.split("_")[1], token); window.location.assign("#questionnaires"); }); } @@ -576,8 +576,6 @@ const initialise = async () => const lastTag=tags[0].trim(); if(lastTag.length >= 2) { - // à revoir : importer la liste des tags lors de l'initialisation pour éviter les appels multiples ? - // mais dans ce cas actualiser cette liste après chaque mise à jour. const xhrSearchTags = new XMLHttpRequest(); xhrSearchTags.open("POST", apiUrl+configQuestionnaires.questionnaireRoutes+configQuestionnaires.tagsSearchRoute); xhrSearchTags.onreadystatechange = function()