mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
#12657 entries order function datatables
This commit is contained in:
parent
ec24bb3a01
commit
5c047fc1b5
@ -66,6 +66,11 @@ if (typeof dt.pagination_options !== "undefined") {
|
|||||||
lengthMenu = dt.pagination_options;
|
lengthMenu = dt.pagination_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dt.pagination_options_order === "true") {
|
||||||
|
lengthMenu[0] = lengthMenu[0].sort((a, b) => a - b);
|
||||||
|
lengthMenu[1] = lengthMenu[1].sort((a, b) => a - b);
|
||||||
|
}
|
||||||
|
|
||||||
var ordering = true;
|
var ordering = true;
|
||||||
if (typeof dt.ordering !== "undefined" && dt.ordering === false) {
|
if (typeof dt.ordering !== "undefined" && dt.ordering === false) {
|
||||||
ordering = dt.ordering;
|
ordering = dt.ordering;
|
||||||
|
@ -2839,7 +2839,7 @@ try {
|
|||||||
'extra_html' => $active_filters_div.$graph_div,
|
'extra_html' => $active_filters_div.$graph_div,
|
||||||
'pagination_options' => [
|
'pagination_options' => [
|
||||||
[
|
[
|
||||||
$config['block_size'],
|
(int) $config['block_size'],
|
||||||
10,
|
10,
|
||||||
25,
|
25,
|
||||||
100,
|
100,
|
||||||
@ -2847,7 +2847,7 @@ try {
|
|||||||
500,
|
500,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
$config['block_size'],
|
(int) $config['block_size'],
|
||||||
10,
|
10,
|
||||||
25,
|
25,
|
||||||
100,
|
100,
|
||||||
@ -2855,6 +2855,7 @@ try {
|
|||||||
500,
|
500,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'pagination_options_order' => 'true',
|
||||||
'order' => [
|
'order' => [
|
||||||
'field' => 'timestamp',
|
'field' => 'timestamp',
|
||||||
'direction' => 'desc',
|
'direction' => 'desc',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user