X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b2acd6e49c9533f9b49bf6f377835508a0a6d53d..edda4af515cfb0bd4de1ed0650b47e124bfad6ed:/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 () {