mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Try differnt mobile detect method
This commit is contained in:
+7
-1
@@ -229,6 +229,12 @@ function main () {
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
function initializeDatatable () {
|
function initializeDatatable () {
|
||||||
|
|
||||||
|
if (window.screen.width < 400) {
|
||||||
|
var tableColumnShow = [10,11,12,1,2,3,4,5,6,8];
|
||||||
|
} else {
|
||||||
|
var tableColumnShow = [10, 11, 12];
|
||||||
|
};
|
||||||
var table=
|
var table=
|
||||||
$('#tableDevices').DataTable({
|
$('#tableDevices').DataTable({
|
||||||
'paging' : true,
|
'paging' : true,
|
||||||
@@ -247,7 +253,7 @@ function initializeDatatable () {
|
|||||||
|
|
||||||
'columnDefs' : [
|
'columnDefs' : [
|
||||||
// Only display all collums on non mobile device width - still in testing phase
|
// Only display all collums on non mobile device width - still in testing phase
|
||||||
{visible: false, targets: if ($(window).width() < 400) {[10,11,12,1,2,3,4,5,6,8]} else {[10, 11, 12]} },
|
{visible: false, targets: tableColumnShow },
|
||||||
{className: 'text-center', targets: [3, 8, 9] },
|
{className: 'text-center', targets: [3, 8, 9] },
|
||||||
{width: '80px', targets: [5, 6] },
|
{width: '80px', targets: [5, 6] },
|
||||||
{width: '0px', targets: 9 },
|
{width: '0px', targets: 9 },
|
||||||
|
|||||||
Reference in New Issue
Block a user