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:
parent
b46c53d329
commit
a84c1cb89d
3 changed files with 3 additions and 3 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue