X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/32ab099c3504c0a9de14ae857c0fe76990bdfc37..b79e4f04b9197e1c1954638db46c9d97597612d4:/app/assets/javascripts/messages.js?ds=sidebyside diff --git a/app/assets/javascripts/messages.js b/app/assets/javascripts/messages.js index eef06457b..0f5933eba 100644 --- a/app/assets/javascripts/messages.js +++ b/app/assets/javascripts/messages.js @@ -5,7 +5,7 @@ $(document).ready(function () { } }); - $(".messages-table .message-summary").on("turbo:before-morph-element", function (event) { + $(".messages-table tbody tr").on("turbo:before-morph-element", function (event) { if ($(event.target).find("[data-is-destroyed]").length > 0) { event.preventDefault(); // NB: prevent Turbo from morhping/removing this element $(event.target).fadeOut(800, "linear", function () {