diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index 4d54b723..db6be3f7 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -138,10 +138,10 @@ let BookWyrm = new class { * @return {undefined} */ toggleAction(event) { - if (event.currentTarget == event.target) { + let trigger = event.currentTarget; + if (!trigger.dataset.allowDefault || event.currentTarget == event.target) { event.preventDefault(); } - let trigger = event.currentTarget; let pressed = trigger.getAttribute('aria-pressed') === 'false'; let targetId = trigger.dataset.controls; diff --git a/bookwyrm/templates/snippets/reading_modals/layout.html b/bookwyrm/templates/snippets/reading_modals/layout.html index 00e45335..0f5dedb0 100644 --- a/bookwyrm/templates/snippets/reading_modals/layout.html +++ b/bookwyrm/templates/snippets/reading_modals/layout.html @@ -8,7 +8,7 @@ {% with 0|uuid as local_uuid %}
-