Allow reordering of the parts table columns.

This commit is contained in:
Jan Böhmer 2019-09-06 18:37:03 +02:00
parent b88c10e543
commit a48b8290b3
4 changed files with 20 additions and 0 deletions

View file

@ -38,6 +38,7 @@ require( 'datatables.net-buttons/js/buttons.print.js' );
//require( 'datatables.net-colreorder-bs4' )();
require( 'datatables.net-fixedheader-bs4' );
require( 'datatables.net-select-bs4' );
require('datatables.net-colreorder-bs4');
require('bootstrap-select');
require('jquery-form');

View file

@ -510,6 +510,7 @@ class AjaxUI {
//@ts-ignore
var promise = $('#part_list').initDataTables(settings,
{
colReorder: true,
"fixedHeader": { header: $(window).width() >= 768, //Only enable fixedHeaders on devices with big screen. Fixes scrolling issues on smartphones.
headerOffset: $("#navbar").height()},
"buttons": [ {