Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-22 09:12:47 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-22 09:12:47 -0700
commit98e4fd58d8c222652f3a5bd1d8a76f7618824e17 (patch)
tree12f1486c73f39fa5190dd938f99efb0257094761 /src/modules/record_sheet.js
parent7395df376deac945fa8f10cbc05c318b1d8dc931 (diff)
Use observable for end move and prone flag
Diffstat (limited to 'src/modules/record_sheet.js')
-rw-r--r--src/modules/record_sheet.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/record_sheet.js b/src/modules/record_sheet.js
index 7b0a80f..b180a8e 100644
--- a/src/modules/record_sheet.js
+++ b/src/modules/record_sheet.js
@@ -118,8 +118,6 @@ function deselect() {
if (selected) {
selected.classList.remove('selected');
}
-
- document.getElementById('toggle-prone-counter').checked = false;
}
function clear() {
@@ -137,7 +135,6 @@ function select(data) {
if (isSelected || !data) return;
record.classList.add('selected');
- document.querySelector('#toggle-prone-counter').checked = data.prone;
}
export function getSelected() {
@@ -170,5 +167,6 @@ export function start(startLoc, units) {
}
Observable.subscribe('select', select);
+ Observable.subscribe('endmove', endMove);
addEventListeners();
}