From 6f101f320c197bdebeb55388c4725cf1416832ee Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 26 Jan 2021 18:57:15 +0100 Subject: [PATCH] =?UTF-8?q?Toujours=20permettre=20de=20filtrer=20les=20com?= =?UTF-8?q?p=C3=A9tences?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor-sheet.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 79880544..506278cd 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -177,6 +177,11 @@ export class RdDActorSheet extends ActorSheet { HtmlUtility._showControlWhen($(".gm-only"), game.user.isGM); + html.find('#show-hide-competences').click((event) => { + this.options.showCompNiveauBase = !this.options.showCompNiveauBase; + this.render(true); + }); + // Everything below here is only needed if the sheet is editable if (!this.options.editable) return; @@ -396,10 +401,6 @@ export class RdDActorSheet extends ActorSheet { this.options.editCaracComp = !this.options.editCaracComp; this.render(true); }); - html.find('#show-hide-competences').click((event) => { - this.options.showCompNiveauBase = !this.options.showCompNiveauBase; - this.render(true); - }); html.find('#show-hide-archetype').click((event) => { this.options.montrerArchetype = !this.options.montrerArchetype; this.render(true);