#10976 fix pagination search global
This commit is contained in:
parent
606ef7d48a
commit
5e7a3d96d4
|
@ -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"));
|
||||
|
|
|
@ -202,7 +202,7 @@ if ($searchAgents) {
|
|||
[
|
||||
'data' => ($agents ?? []),
|
||||
'recordsTotal' => $totalAgents,
|
||||
'recordsFiltered' => count($agents),
|
||||
'recordsFiltered' => $totalAgents,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue