Translate no records found message

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-20 11:19:47 +01:00
parent bcb747f886
commit 6a6272ace3
2 changed files with 8 additions and 4 deletions

View file

@ -6,5 +6,6 @@ return array(
'action' => 'Action', 'action' => 'Action',
'by' => 'By', 'by' => 'By',
'item' => 'Item', 'item' => 'Item',
'no_matching_records' => 'No matching records found',
); );

View file

@ -92,6 +92,9 @@
exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ], exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ],
onLoadSuccess: function () { onLoadSuccess: function () {
$('[data-tooltip="true"]').tooltip(); // Needed to attach tooltips after ajax call $('[data-tooltip="true"]').tooltip(); // Needed to attach tooltips after ajax call
},
formatNoMatches: function () {
return '{{ trans('table.no_matching_records') }}';
} }
}); });