From 05398a74f0213124ae45258b6321c6fc81337812 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 26 Nov 2021 00:46:26 +0100 Subject: [PATCH] Fix: ajout de stress avec personnage ouvert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'ajout de stress prennait le stress d'un personnage ouvert au lieu de la saisie dans la fenĂȘtre d'ajout de stress --- module/dialog-stress.js | 6 +++--- templates/dialog-stress.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/dialog-stress.js b/module/dialog-stress.js index 210b9918..cc136977 100644 --- a/module/dialog-stress.js +++ b/module/dialog-stress.js @@ -46,9 +46,9 @@ export class DialogStress extends Dialog { validerStress() { - this.dialogData.motif = $("[name='motif']").val(); - this.dialogData.stress = $("[name='stress']").val(); - this.dialogData.immediat = $("[name='immediat']").prop("checked");; + this.dialogData.motif = $("form.rdddialogstress input[name='motif']").val(); + this.dialogData.stress = $("form.rdddialogstress input[name='stress']").val(); + this.dialogData.immediat = $("form.rdddialogstress input[name='immediat']").prop("checked");; } /* -------------------------------------------- */ diff --git a/templates/dialog-stress.html b/templates/dialog-stress.html index 4273ab70..12a6608f 100644 --- a/templates/dialog-stress.html +++ b/templates/dialog-stress.html @@ -1,4 +1,4 @@ -
+