- some bug fixes where tables in /admin section appear empty after the last commit

This commit is contained in:
Mark Friedrich
2018-09-06 20:22:06 +02:00
parent 4385c4a3d0
commit e9285a3157
5 changed files with 18 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ define([
setPageObserver();
let temp = $('.dataTable').dataTable( {
let temp = $('.dataTable').dataTable({
pageLength: 100,
paging: true,
ordering: true,
@@ -84,7 +84,8 @@ define([
zeroRecords: 'No entries found',
lengthMenu: 'Show _MENU_ entries',
info: 'Showing _START_ to _END_ of _TOTAL_ entries'
}
},
data: null // use DOM data overwrites [] default -> data.loader.js
});

View File

@@ -89,7 +89,8 @@ define([
lengthMenu: 'Show _MENU_ wormholes',
info: 'Showing _START_ to _END_ of _TOTAL_ wormholes'
},
columnDefs: []
columnDefs: [],
data: null // use DOM data overwrites [] default -> data.loader.js
});
$(this).find('.' + config.wormholeInfoJumpTableClass).DataTable({
@@ -106,7 +107,8 @@ define([
lengthMenu: 'Show _MENU_ wormholes',
info: 'Showing _START_ to _END_ of _TOTAL_ wormholes'
},
columnDefs: []
columnDefs: [],
data: null // use DOM data overwrites [] default -> data.loader.js
});
});