From 303bdce0a0a8b3c41716f67bf5368107c8118377 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Thu, 23 Nov 2023 19:11:29 -0700 Subject: [PATCH] Add stub for registering event listeners in the handlebars --- module/sheets/CharacterSheet.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/sheets/CharacterSheet.js b/module/sheets/CharacterSheet.js index fa25ddc..ac375be 100644 --- a/module/sheets/CharacterSheet.js +++ b/module/sheets/CharacterSheet.js @@ -12,4 +12,14 @@ export class CharacterSheet extends ActorSheet { } ); }; + + activateListeners(html) { + super.activateListeners(html); + + if (!this.isEditable) return; + console.debug(`.dungeon | Adding event listeners for Actor${this.id}`) + + // Modal openings + html.find(`button.stat-prompt`).on("click", () => {}); + } } \ No newline at end of file