update new Datatable
This commit is contained in:
@@ -19,7 +19,20 @@ $(document).ready(function(){
|
||||
d.source = $('#source').val();
|
||||
},
|
||||
dataSrc:''},
|
||||
dom: '<"toolbar">frt',
|
||||
layout: {
|
||||
topStart: {
|
||||
buttons: [
|
||||
{text:'Neu Rechnung',className:'btn-sm',action: function ( e, dt, node, config ) {
|
||||
location.href = '/newBill/';
|
||||
}},
|
||||
{text:'Neuer Transfer',className:'btn-sm mx-2',action: function ( e, dt, node, config ) {
|
||||
location.href = '/newTransfer/';
|
||||
}},
|
||||
]
|
||||
},
|
||||
topEnd: 'search'
|
||||
},
|
||||
// dom: '<"toolbar">frt',
|
||||
"createdRow": function ( row, data, index ) {
|
||||
if(data.validate == "t"){
|
||||
$(row).addClass('text-bg-warning');
|
||||
@@ -28,7 +41,7 @@ $(document).ready(function(){
|
||||
columns: colomnspez,
|
||||
});
|
||||
|
||||
$("div.toolbar").html('<a class="btn-sm btn-secondary mx-2" href="/newBill" role="button">Neue Rechnung</a><a class="btn-sm btn-secondary" href="/newTransfer" role="button">Neuer Transfer</a>');
|
||||
// $("div.toolbar").html('<a class="btn-sm btn-secondary mx-2" href="/newBill" role="button">Neue Rechnung</a><a class="btn-sm btn-secondary" href="/newTransfer" role="button">Neuer Transfer</a>');
|
||||
$('#bookings tbody').on('click', 'td.dt-receiver', function () {collapseDetails($(this), datatable);} );
|
||||
$('#bookings tbody').on('click', 'td.dt-datum', function () {location.href = '/editBill/'+getId($(this),datatable);});
|
||||
$('#bookings tbody').on('click', 'table.tabdet', function () {location.href = '/editBill/'+$(this).attr('data-bs-id');});
|
||||
|
||||
Reference in New Issue
Block a user