#10976 fix pagination search global

This commit is contained in:
Jonathan 2023-05-08 09:42:17 +02:00
parent 606ef7d48a
commit 5e7a3d96d4
3 changed files with 3 additions and 7 deletions

View File

@ -4086,7 +4086,7 @@ function ui_print_datatable(array $parameters)
$(".action_buttons_right_content").html("<div class=\"pagination-child-div\"></div>");
$(".action_buttons_right_content").html("<div class=\"pagination-child-div\"></div>");
$(".pagination-child-div").append($("#'.$table_id.'_wrapper > .dataTables_paginate.paging_simple_numbers"));
$(".pagination-child-div").append($("#'.$table_id.'_wrapper > .dataTables_paginate.paging_simple_numbers").attr("style","margin-right: 10px;"));
$(".pagination-child-div").append($("#'.$table_id.'_wrapper > .dataTables_length"));
$(".pagination-child-div").append($("#'.$table_id.'_wrapper > .dt-buttons"));
$(".pagination-child-div").append($("#'.$table_id.'_wrapper > .dataTables_filter"));

View File

@ -202,7 +202,7 @@ if ($searchAgents) {
[
'data' => ($agents ?? []),
'recordsTotal' => $totalAgents,
'recordsFiltered' => count($agents),
'recordsFiltered' => $totalAgents,
]
);
}

View File

@ -54,7 +54,6 @@ try {
'columns' => $columns,
'column_names' => $column_names,
'ajax_url' => 'operation/search_agents.getdata',
'ajax_postprocces' => 'process_datatables_item(item)',
'ajax_data' => ['search_agents' => 1],
'order' => [
'field' => 'alias',
@ -65,10 +64,7 @@ try {
]
);
html_print_action_buttons(
'',
[ 'type' => 'data_table' ]
);
html_print_action_buttons('');
} catch (Exception $e) {
echo $e->getMessage();
}