From c48ae234cebc96260baca88c3e67523ce52c7591 Mon Sep 17 00:00:00 2001 From: friedPotat0 <5374007+friedPotat0@users.noreply.github.com> Date: Sat, 27 Jul 2019 19:07:01 +0200 Subject: [PATCH] Restrict toggle for tbl with specific breakpoints --- data/web/js/site/mailbox.js | 21 ++++++++++++++------- data/web/js/site/user.js | 3 ++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 8864d651..50b5956d 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -300,7 +300,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'domain_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_mailbox_table() { @@ -492,7 +493,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'resource_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_bcc_table() { @@ -560,7 +562,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'bcc_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_recipient_map_table() { @@ -623,7 +626,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'recipient_map_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_tls_policy_table() { @@ -692,7 +696,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'tls_policy_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_transport_maps_table() { @@ -759,7 +764,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'transport_maps_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_alias_table() { @@ -916,7 +922,8 @@ jQuery(function($){ "after.ft.filtering": function(e, ft){ table_mailbox_ready(ft, 'aliasdomain_table'); } - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js index 12340d1f..a976dd85 100644 --- a/data/web/js/site/user.js +++ b/data/web/js/site/user.js @@ -84,7 +84,8 @@ jQuery(function($){ "state": {"enabled": true}, "sorting": { "enabled": true - } + }, + "toggleSelector": "table tbody span.footable-toggle" }); } function draw_sync_job_table() {