mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix status filter bug
This commit is contained in:
parent
8910b3ae27
commit
c0930fc0f1
@ -42,12 +42,12 @@
|
||||
});
|
||||
@endif
|
||||
|
||||
function refreshDatatable() {
|
||||
window.dataTable.api().ajax.reload();
|
||||
function refreshDatatable{{ isset($values['entityType']) ? '_' . $values['entityType'] : '' }}() {
|
||||
window['dataTable{{ isset($values['entityType']) ? '_' . $values['entityType'] : '' }}'].api().ajax.reload();
|
||||
}
|
||||
|
||||
function load_{{ $class }}() {
|
||||
window.dataTable = jQuery('.{{ $class }}').dataTable({
|
||||
window['dataTable{{ isset($values['entityType']) ? '_' . $values['entityType'] : '' }}'] = jQuery('.{{ $class }}').dataTable({
|
||||
"stateSave": true,
|
||||
"stateDuration": 0,
|
||||
"fnRowCallback": function(row, data) {
|
||||
|
@ -212,7 +212,7 @@
|
||||
}
|
||||
var url = '{{ URL::to('set_entity_filter/' . $entityType) }}' + '/' + filter;
|
||||
$.get(url, function(data) {
|
||||
refreshDatatable();
|
||||
refreshDatatable_{{ Utils::pluralizeEntityType($entityType) }}();
|
||||
})
|
||||
}).maximizeSelect2Height();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user