From 2ff57d82723f799d0df09fa6b0c14ef0196bbb99 Mon Sep 17 00:00:00 2001 From: Joshua <63589370+Final-Hawk@users.noreply.github.com> Date: Wed, 10 May 2023 12:05:40 +1000 Subject: [PATCH] Fix table mobile view Remove obsolete column changing for mobile. This is now handled by the column selector in the maintenance tab. --- front/devices.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/front/devices.php b/front/devices.php index b0b04342..7516f85d 100755 --- a/front/devices.php +++ b/front/devices.php @@ -316,15 +316,7 @@ function initializeDatatable () { tableColumnHide.push(mapIndx(tableColumnOrder[i])); } } - - // If the device has a small width (mobile) only show name, ip, and status columns. - if (window.screen.width < 400) { - tableColumnHide = [11,12,13,1,2,4,5,6,7,9]; - } - // else { - // // var tableColumnHide = [11, 12, 13]; - // tableColumnHide = [11, 12, 13]; - // }; + var table= $('#tableDevices').DataTable({ 'paging' : true,