From 98306e20be2a405c13e3451554f721c7d2bd5cfe Mon Sep 17 00:00:00 2001 From: Jeroen Peelaerts Date: Wed, 30 Dec 2020 22:14:43 +0100 Subject: [PATCH 1/2] Disable resize trigger (#3057) --- application/views/reports/tabular.php | 1 - application/views/reports/tabular_details.php | 1 - public/js/manage_tables.js | 10 ---------- 3 files changed, 12 deletions(-) diff --git a/application/views/reports/tabular.php b/application/views/reports/tabular.php index b5433aa9f..3ef326f36 100644 --- a/application/views/reports/tabular.php +++ b/application/views/reports/tabular.php @@ -58,7 +58,6 @@ escape: false }); - table_support.init_resize(); }); diff --git a/application/views/reports/tabular_details.php b/application/views/reports/tabular_details.php index 59f3698e5..40d334382 100644 --- a/application/views/reports/tabular_details.php +++ b/application/views/reports/tabular_details.php @@ -91,7 +91,6 @@ }); init_dialog(); - table_support.init_resize(); }); diff --git a/public/js/manage_tables.js b/public/js/manage_tables.js index c272fff91..fbfeb83c3 100644 --- a/public/js/manage_tables.js +++ b/public/js/manage_tables.js @@ -258,20 +258,10 @@ enable_actions(); init_delete(); init_restore(); - init_resize(); toggle_column_visibility(); dialog_support.init("button.modal-dlg"); }; - var init_resize = function() { - $(window).resize(function () { - $('#table').bootstrapTable('refreshOptions', { - stickyHeaderOffsetLeft: $('#table').offset().left + 'px', - stickyHeaderOffsetRight: $('#table').offset().right + 'px', - }) - }) - } - var init_delete = function (confirmMessage) { $("#delete").click(function(event) { do_action("delete")(); From dcda176614259c887f7ebe2842116c29fa17ac10 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Thu, 31 Dec 2020 09:25:22 +0000 Subject: [PATCH 2/2] Remove extra init_resize call --- public/js/manage_tables.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/js/manage_tables.js b/public/js/manage_tables.js index fbfeb83c3..4a39eb0d5 100644 --- a/public/js/manage_tables.js +++ b/public/js/manage_tables.js @@ -319,7 +319,6 @@ }, handle_submit: handle_submit, init: init, - init_resize: init_resize, do_delete: do_action("delete"), do_restore: do_action("restore"), refresh : refresh,