From 2f90b4ce66d8000ca66ff041d992e66faf760e26 Mon Sep 17 00:00:00 2001 From: Fabien Basmaison Date: Thu, 8 Apr 2021 11:37:14 +0200 Subject: [PATCH] [assets] Fix broken actions for focus and checkbox: This commit should address the following two comments: - https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609172258 - https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609174513 --- bookwyrm/static/js/bookwyrm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index b01d7fe22..63f105610 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -156,14 +156,14 @@ let BookWyrm = new class { } // Check checkbox, if appropriate. - let checkbox = trigger.dataset['controls-checkbox']; + let checkbox = trigger.dataset.controlsCheckbox; if (checkbox) { this.toggleCheckbox(checkbox, pressed); } // Set focus, if appropriate. - let focus = trigger.dataset['focus-target']; + let focus = trigger.dataset.focusTarget; if (focus) { this.toggleFocus(focus);