From d1153b470f6a2fad5b71e44446e1e94ad44c6d7a Mon Sep 17 00:00:00 2001 From: friedPotat0 <5374007+friedPotat0@users.noreply.github.com> Date: Sat, 27 Jul 2019 18:57:58 +0200 Subject: [PATCH] Restrict row toggle for remaing tables --- data/web/js/site/mailbox.js | 12 ++++++++---- data/web/js/site/user.js | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 588c5570..8864d651 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -419,7 +419,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'mailbox_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_resource_table() { @@ -854,7 +855,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'alias_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } @@ -995,7 +997,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'sync_job_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } @@ -1064,7 +1067,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'filter_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); }; diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js index bb458daa..12340d1f 100644 --- a/data/web/js/site/user.js +++ b/data/web/js/site/user.js @@ -151,7 +151,8 @@ jQuery(function($){ "state": {"enabled": true}, "sorting": { "enabled": true - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_wl_policy_mailbox_table() {