From 4274bce7d5d4ec49eddb620da1c51866cf6bb1eb Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 26 Dec 2023 19:03:49 +0100 Subject: [PATCH] minor cleanup --- module/sommeil/app-astrologie.js | 4 ++-- module/sommeil/dialog-repos.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/sommeil/app-astrologie.js b/module/sommeil/app-astrologie.js index 8f7e1e20..d993eaf7 100644 --- a/module/sommeil/app-astrologie.js +++ b/module/sommeil/app-astrologie.js @@ -116,10 +116,10 @@ export class AppAstrologie extends Application { super.activateListeners(html); this.html = html; this.html.find('select[name="signe-astral"]').change(event => { - this.selectNombreAstral(this.html.find('select[name="signe-astral"]').val()); + this.selectNombreAstral(event.currentTarget.value); }) this.html.find('select[name="signe-naissance"]').change(event => { - this.selectHeureNaissance(this.html.find('select[name="signe-naissance"]').val()); + this.selectHeureNaissance(event.currentTarget.value); }) this.html.find('td.nombre-astral').click(event => { this.selectNombreAstral(Number.parseInt(event.currentTarget.attributes['data-nombre-astral'].value) - 1); diff --git a/module/sommeil/dialog-repos.js b/module/sommeil/dialog-repos.js index d895c8ee..406914c8 100644 --- a/module/sommeil/dialog-repos.js +++ b/module/sommeil/dialog-repos.js @@ -21,7 +21,7 @@ export class DialogRepos extends Dialog { } constructor(html, actor) { - let options = { classes: ["DialogCreateSigneDraconiqueActorsActors"], width: 400, height: 'fit-content', 'z-index': 99999 }; + let options = { classes: ["dialog-repos"], width: 400, height: 'fit-content', 'z-index': 99999 }; let conf = { title: "Se reposer", content: html,