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);