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
|
@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) {
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user