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