- new role management section for corporations admins - added column "nullable" detection within /setup page for DB diff - added new map icon options options to the map add/edit dialog - refactored setup() method for all tables with static data - fixed broken map icons - fixed broken "drag/select" for systems on map - fixed new "map resize" event for non Chrome browsers - multiple minor improvements and fixes...
57 lines
1.3 KiB
JavaScript
57 lines
1.3 KiB
JavaScript
/**
|
|
* Main "admin" page
|
|
*/
|
|
|
|
define([
|
|
'jquery',
|
|
'app/init',
|
|
'app/util',
|
|
'datatables.loader'
|
|
], ($, Init, Util) => {
|
|
|
|
'use strict';
|
|
|
|
let config = {
|
|
splashOverlayClass: 'pf-splash', // class for "splash" overlay
|
|
triggerOverlayClass: 'pf-overlay-trigger' // class for
|
|
};
|
|
|
|
|
|
/**
|
|
* set page observer
|
|
*/
|
|
let setPageObserver = () => {
|
|
$('.' + config.triggerOverlayClass).on('click', function(){
|
|
$('.' + config.splashOverlayClass).showSplashOverlay();
|
|
});
|
|
};
|
|
|
|
/**
|
|
* main init "admin" page
|
|
*/
|
|
$(() => {
|
|
// set Dialog default config
|
|
Util.initDefaultBootboxConfig();
|
|
|
|
// hide splash loading animation
|
|
$('.' + config.splashOverlayClass).hideSplashOverlay();
|
|
|
|
setPageObserver();
|
|
|
|
let temp = $('.dataTable').dataTable( {
|
|
pageLength: 100,
|
|
paging: true,
|
|
ordering: true,
|
|
autoWidth: false,
|
|
hover: false,
|
|
language: {
|
|
emptyTable: 'No entries',
|
|
zeroRecords: 'No entries found',
|
|
lengthMenu: 'Show _MENU_ entries',
|
|
info: 'Showing _START_ to _END_ of _TOTAL_ entries'
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
}); |