1
0
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:
Hillel Coren 2017-07-17 14:23:29 +03:00
parent 8910b3ae27
commit c0930fc0f1
2 changed files with 4 additions and 4 deletions

View File

@ -42,12 +42,12 @@
}); });
@endif @endif
function refreshDatatable() { function refreshDatatable{{ isset($values['entityType']) ? '_' . $values['entityType'] : '' }}() {
window.dataTable.api().ajax.reload(); window['dataTable{{ isset($values['entityType']) ? '_' . $values['entityType'] : '' }}'].api().ajax.reload();
} }
function load_{{ $class }}() { function load_{{ $class }}() {
window.dataTable = jQuery('.{{ $class }}').dataTable({ window['dataTable{{ isset($values['entityType']) ? '_' . $values['entityType'] : '' }}'] = jQuery('.{{ $class }}').dataTable({
"stateSave": true, "stateSave": true,
"stateDuration": 0, "stateDuration": 0,
"fnRowCallback": function(row, data) { "fnRowCallback": function(row, data) {

View File

@ -212,7 +212,7 @@
} }
var url = '{{ URL::to('set_entity_filter/' . $entityType) }}' + '/' + filter; var url = '{{ URL::to('set_entity_filter/' . $entityType) }}' + '/' + filter;
$.get(url, function(data) { $.get(url, function(data) {
refreshDatatable(); refreshDatatable_{{ Utils::pluralizeEntityType($entityType) }}();
}) })
}).maximizeSelect2Height(); }).maximizeSelect2Height();