From 4e3ccb741a295c34f08cdbaf565c01b213866dfe Mon Sep 17 00:00:00 2001 From: Nick Eimers Date: Sat, 20 Jun 2020 20:50:38 -0700 Subject: [PATCH] fixed reset breaking point button handler finally --- css/deltagreen.css | 2 +- module/actor/actor-sheet.js | 5 +++-- templates/actor/actor-sheet.html | 15 +++++++++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/css/deltagreen.css b/css/deltagreen.css index 1e5c14e..a31bcbd 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -254,7 +254,7 @@ text-align: right; } -.deltagreen button.btn-tiny{ +button.btn-tiny{ height: 26px; margin-left: 5px; margin-right: 5px; diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index c0c63f0..fc6de03 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -122,8 +122,9 @@ export class DeltaGreenActorSheet extends ActorSheet { } // Custom Sheet Macros - html.find('#btnResetBreakingPoint').click(this._resetBreakingPoint.bind(this)); - //html.find('.sanity-test-btn').click(this._onSanityTest.bind(this)); + html.find('#btnResetBreakingPoint').click((event) => { + this._resetBreakingPoint(this); + }); } /** diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index c6657ae..9000960 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -55,10 +55,17 @@ from 1 to 12 and will create that number of columns. --}}
{{#each data.statistics as |statistic key|}} -
- - - ({{numberFormat statistic.x5 decimals=0 sign=false}}%) +
+
+
+ + + ({{numberFormat statistic.x5 decimals=0 sign=false}}%) +
+
+ +
+
{{/each}}