From 0681975c457eee3030d150bfab329e1be5a85159 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 28 Aug 2022 20:02:07 +0200 Subject: [PATCH] [Mode editor] Tweaked column filtering --- application/views/mode/index.php | 24 ++++++++++++------------ assets/js/sections/mode.js | 5 +++-- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/application/views/mode/index.php b/application/views/mode/index.php index c5019e5a..643f6a1a 100644 --- a/application/views/mode/index.php +++ b/application/views/mode/index.php @@ -25,10 +25,10 @@ - - - - + + + + @@ -60,17 +60,17 @@ - - - - - - - + + + + + + +
ModeSub-ModeSSB / DATA / CWStatusModeSub-ModeSSB / DATA / CWStatus
- +

diff --git a/assets/js/sections/mode.js b/assets/js/sections/mode.js index 171d0b23..5a496f75 100644 --- a/assets/js/sections/mode.js +++ b/assets/js/sections/mode.js @@ -5,10 +5,10 @@ $('.modetable').DataTable({ "scrollY": "500px", "scrollCollapse": true, "paging": false, - "scrollX": true, + "scrollX": true, initComplete: function () { this.api() - .columns() + .columns('.select-filter') .every(function () { var column = this; var select = $('') @@ -29,6 +29,7 @@ $('.modetable').DataTable({ }); }, }); +$($.fn.dataTable.tables(true)).DataTable().columns.adjust(); function createModeDialog() { $.ajax({