]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Use expanded.ft.row instead of expand.ft.row
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 13 Dec 2025 07:22:48 +0000 (10:22 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 13 Dec 2025 07:22:48 +0000 (10:22 +0300)
The expanded event fires after row expansion is complete,
eliminating the need for the artificial 5ms delay.

interface/js/app/libft.js

index 0d2024b42283e86ee54eb46f7972ba323f5d1aa3..0e32932d1bdb1687bea0c9bfc9735a17b09d794b 100644 (file)
@@ -374,13 +374,11 @@ define(["jquery", "app/common", "footable"],
                     filtering: FooTable.actionFilter
                 },
                 on: {
-                    "expand.ft.row": function (e, ft, row) {
-                        setTimeout(() => {
-                            const detail_row = row.$el.next();
-                            const order = common.getSelector("selSymOrder_" + table);
-                            detail_row.find(".btn-sym-" + table + "-" + order)
-                                .addClass("active").siblings().removeClass("active");
-                        }, 5);
+                    "expanded.ft.row": function (e, ft, row) {
+                        const detail_row = row.$el.next();
+                        const order = common.getSelector("selSymOrder_" + table);
+                        detail_row.find(".btn-sym-" + table + "-" + order)
+                            .addClass("active").siblings().removeClass("active");
                     },
                     "postdraw.ft.table": postdrawCallback
                 }