From f825d19eb43810e589efe8aca695b468f0c0f61d Mon Sep 17 00:00:00 2001 From: Joshua Date: Thu, 21 Jul 2022 11:25:24 +1000 Subject: [PATCH] mobile --- front/devices.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/front/devices.php b/front/devices.php index 9ae25575..4c31f150 100644 --- a/front/devices.php +++ b/front/devices.php @@ -247,13 +247,7 @@ function initializeDatatable () { 'columnDefs' : [ // Only display all collums on non mobile device width - still in testing phase - if ($(window).width() < 400) { - {visible: false, targets: [10,11,12,1,2,3,4,5,6,8] }, - } - else { - {visible: false, targets: [10, 11, 12] }, - } - // {visible: false, targets: [10, 11, 12] }, + {visible: false, targets: if ($(window).width() < 400) {[10,11,12,1,2,3,4,5,6,8]} else {[10, 11, 12]} }, {className: 'text-center', targets: [3, 8, 9] }, {width: '80px', targets: [5, 6] }, {width: '0px', targets: 9 },