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
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) {

View File

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