diff --git a/bookwyrm/static/js/status_cache.js b/bookwyrm/static/js/status_cache.js index ee563a153..26b308ac0 100644 --- a/bookwyrm/static/js/status_cache.js +++ b/bookwyrm/static/js/status_cache.js @@ -79,7 +79,13 @@ let StatusCache = new class { modal.getElementsByClassName("modal-close")[0].click(); } - // Update buttons + // Close reply panel + let reply = form.closest(".reply-panel"); + if (!!reply) { + document.querySelector("[data-controls=" + reply.id + "]").click(); + } + + // Update shelve buttons } }(); diff --git a/bookwyrm/templates/snippets/status/layout.html b/bookwyrm/templates/snippets/status/layout.html index 6ffdd0f72..39445d9c1 100644 --- a/bookwyrm/templates/snippets/status/layout.html +++ b/bookwyrm/templates/snippets/status/layout.html @@ -66,7 +66,7 @@ {% block card-bonus %} {% if request.user.is_authenticated and not moderation_mode %} {% with status.id|uuid as uuid %} -