Remove .message-summary css classes and selectors

They are not necessary because they select every table body row, and the table already has its own class.
This commit is contained in:
Anton Khorev 2024-04-30 06:49:30 +03:00
parent b46c53d329
commit a84c1cb89d
3 changed files with 3 additions and 3 deletions

View file

@ -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 () {