Lines 342-351
Link Here
|
342 |
"aaSorting": [[ 0, "asc" ]], |
342 |
"aaSorting": [[ 0, "asc" ]], |
343 |
}, items_columns_settings, false); |
343 |
}, items_columns_settings, false); |
344 |
|
344 |
|
345 |
$(".add_button").on("click", function(e) { |
345 |
$("#invoices").on("click", ".add_button", function(e) { |
346 |
e.preventDefault(); |
346 |
e.preventDefault(); |
347 |
fnClickAddRow(sale_table, $( this ).data('invoiceCode'), $( this ).data('invoiceTitle'), $( this ).data('invoicePrice') ); |
347 |
fnClickAddRow(sale_table, $( this ).data('invoiceCode'), $( this ).data('invoiceTitle'), $( this ).data('invoicePrice') ); |
348 |
items_table.fnFilter( '' ); |
348 |
if($('#invoices_filter').find('input[type=search]').val() !== ''){ |
|
|
349 |
items_table.fnFilter( '' ); |
350 |
} |
349 |
}); |
351 |
}); |
350 |
|
352 |
|
351 |
// Change calculation and modal |
353 |
// Change calculation and modal |
352 |
- |
|
|