X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1a7b7f5d18931f60f4171b7ac410ea4434828dd1..33a2ccf560dbb4054d260a7ba9b4a572d4668ae9:/app/assets/javascripts/messages.js 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 () {