diff --git a/app/main/model/mapmodel.php b/app/main/model/mapmodel.php index b952bd88..bad51811 100644 --- a/app/main/model/mapmodel.php +++ b/app/main/model/mapmodel.php @@ -611,7 +611,7 @@ class MapModel extends BasicModel { $characters = []; if($this->isPrivate()){ - $activeCharacters = $this->getCharacters(); + $activeCharacters = $this->getCharacters([], $options); // add active character for each user foreach($activeCharacters as $activeCharacter){ diff --git a/js/app/map/local.js b/js/app/map/local.js index 08722d84..1417e06b 100644 --- a/js/app/map/local.js +++ b/js/app/map/local.js @@ -197,7 +197,7 @@ define([ userData[jumps][j].jumps = jumps; let rowData = userData[jumps][j]; - +console.log(rowData) // check for existing rows let indexes = filterRows(localTable, 'id', [rowData.id]); @@ -405,6 +405,17 @@ define([ width: '1px', className: ['pf-help-default', 'text-center'].join(' '), data: 'jumps', + render: { + _: function(data, type, row, meta){ + let value = data; + if(type === 'display'){ + if(value === 0){ + value = ''; + } + } + return value; + } + }, createdCell: function(cell, cellData, rowData, rowIndex, colIndex){ let api = this.DataTable(); initCellTooltip(api, cell, 'log.system.name'); diff --git a/js/app/ui/dialog/map_info.js b/js/app/ui/dialog/map_info.js index 982f4bbc..d354d0db 100644 --- a/js/app/ui/dialog/map_info.js +++ b/js/app/ui/dialog/map_info.js @@ -665,7 +665,7 @@ define([ paging: true, lengthMenu: [[5, 10, 20, 50, -1], [5, 10, 20, 50, 'All']], ordering: true, - order: [[ 0, 'desc' ], [ 4, 'asc' ]], + order: [[ 3, 'asc' ]], autoWidth: false, hover: false, data: usersData, @@ -678,25 +678,6 @@ define([ columnDefs: [ { targets: 0, - title: '', - width: '10px', - orderable: true, - searchable: false, - className: ['text-center'].join(' '), - data: 'log.active', - render: { - _: function(data, type, row, meta){ - let value = data; - if(type === 'display'){ - let icon = value ? 'fa-user' : 'fa-user-o'; - value = ''; - } - return value; - } - } - }, - { - targets: 1, title: '', width: '26px', orderable: false, @@ -713,7 +694,7 @@ define([ } } },{ - targets: 2, + targets: 1, title: 'ship name', width: '100px', orderable: true, @@ -729,7 +710,7 @@ define([ } } },{ - targets: 3, + targets: 2, title: '', width: '26px', orderable: false, @@ -746,7 +727,7 @@ define([ } } },{ - targets: 4, + targets: 3, title: 'pilot', orderable: true, searchable: true, @@ -769,7 +750,7 @@ define([ }); } },{ - targets: 5, + targets: 4, title: '', width: '26px', orderable: false, @@ -786,7 +767,7 @@ define([ } } },{ - targets: 6, + targets: 5, title: 'corporation', orderable: true, searchable: true, @@ -809,7 +790,7 @@ define([ }); } },{ - targets: 7, + targets: 6, title: 'system', orderable: true, searchable: true, @@ -819,7 +800,7 @@ define([ sort: 'name' } },{ - targets: 8, + targets: 7, title: 'station', orderable: true, searchable: true, diff --git a/public/js/v1.2.3/app/map/local.js b/public/js/v1.2.3/app/map/local.js index 08722d84..1417e06b 100644 --- a/public/js/v1.2.3/app/map/local.js +++ b/public/js/v1.2.3/app/map/local.js @@ -197,7 +197,7 @@ define([ userData[jumps][j].jumps = jumps; let rowData = userData[jumps][j]; - +console.log(rowData) // check for existing rows let indexes = filterRows(localTable, 'id', [rowData.id]); @@ -405,6 +405,17 @@ define([ width: '1px', className: ['pf-help-default', 'text-center'].join(' '), data: 'jumps', + render: { + _: function(data, type, row, meta){ + let value = data; + if(type === 'display'){ + if(value === 0){ + value = ''; + } + } + return value; + } + }, createdCell: function(cell, cellData, rowData, rowIndex, colIndex){ let api = this.DataTable(); initCellTooltip(api, cell, 'log.system.name'); diff --git a/public/js/v1.2.3/app/ui/dialog/map_info.js b/public/js/v1.2.3/app/ui/dialog/map_info.js index 982f4bbc..d354d0db 100644 --- a/public/js/v1.2.3/app/ui/dialog/map_info.js +++ b/public/js/v1.2.3/app/ui/dialog/map_info.js @@ -665,7 +665,7 @@ define([ paging: true, lengthMenu: [[5, 10, 20, 50, -1], [5, 10, 20, 50, 'All']], ordering: true, - order: [[ 0, 'desc' ], [ 4, 'asc' ]], + order: [[ 3, 'asc' ]], autoWidth: false, hover: false, data: usersData, @@ -678,25 +678,6 @@ define([ columnDefs: [ { targets: 0, - title: '', - width: '10px', - orderable: true, - searchable: false, - className: ['text-center'].join(' '), - data: 'log.active', - render: { - _: function(data, type, row, meta){ - let value = data; - if(type === 'display'){ - let icon = value ? 'fa-user' : 'fa-user-o'; - value = ''; - } - return value; - } - } - }, - { - targets: 1, title: '', width: '26px', orderable: false, @@ -713,7 +694,7 @@ define([ } } },{ - targets: 2, + targets: 1, title: 'ship name', width: '100px', orderable: true, @@ -729,7 +710,7 @@ define([ } } },{ - targets: 3, + targets: 2, title: '', width: '26px', orderable: false, @@ -746,7 +727,7 @@ define([ } } },{ - targets: 4, + targets: 3, title: 'pilot', orderable: true, searchable: true, @@ -769,7 +750,7 @@ define([ }); } },{ - targets: 5, + targets: 4, title: '', width: '26px', orderable: false, @@ -786,7 +767,7 @@ define([ } } },{ - targets: 6, + targets: 5, title: 'corporation', orderable: true, searchable: true, @@ -809,7 +790,7 @@ define([ }); } },{ - targets: 7, + targets: 6, title: 'system', orderable: true, searchable: true, @@ -819,7 +800,7 @@ define([ sort: 'name' } },{ - targets: 8, + targets: 7, title: 'station', orderable: true, searchable: true,