2020-05-23 12:32:36 +02:00
|
|
|
$(document).ready(function () {
|
2020-05-09 19:09:27 +02:00
|
|
|
$('#main_table').DataTable({
|
2020-05-23 14:15:30 +02:00
|
|
|
"rowReorder": {
|
|
|
|
"selector": 'td:nth-child(2)'
|
|
|
|
},
|
|
|
|
"responsive": true,
|
2020-05-09 19:09:27 +02:00
|
|
|
"display": true,
|
|
|
|
"cell-border": true,
|
|
|
|
"processing": true,
|
|
|
|
"serverSide": true,
|
|
|
|
"language": {
|
|
|
|
"lengthMenu": "Show _MENU_ entries",
|
|
|
|
"info": "Showing page _PAGE_ of _PAGES_",
|
|
|
|
"search": "Search :",
|
|
|
|
"paginate": {
|
2020-05-23 12:32:36 +02:00
|
|
|
"first": "First",
|
|
|
|
"last": "Last",
|
|
|
|
"next": "Next",
|
|
|
|
"previous": "Previous"
|
2020-05-09 19:09:27 +02:00
|
|
|
},
|
|
|
|
},
|
2020-05-23 12:32:36 +02:00
|
|
|
"stateSave": true,
|
|
|
|
"ajax": {
|
|
|
|
"url": "/qrzws",
|
|
|
|
"type": "POST",
|
|
|
|
"contentType": "application/json",
|
|
|
|
"data": function (d) {
|
|
|
|
return JSON.stringify(d);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"columns": [{
|
|
|
|
"name": "qrz"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "name"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "city"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "dept"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "country"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "dmrid"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
});
|
|
|
|
});
|