Files
pathfinder/js/app/admin.js
Mark Friedrich ac36d5e074 - new role management for Corporation maps, closed #164
- 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...
2018-02-16 17:02:10 +01:00

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'
}
});
});
});