Ratioed: allow both sorting directions
parent
2ef9cb8add
commit
d495810b2d
|
@ -70,10 +70,10 @@ class RatioedPanel extends Active
|
|||
|
||||
$order = 'last-item';
|
||||
$order_direction = '-';
|
||||
if (!empty($request['o'])) {
|
||||
$new_order = $request['o'];
|
||||
if ($new_order[0] === '-') {
|
||||
$order_direction = '-';
|
||||
if (!empty($_REQUEST['o'])) {
|
||||
$new_order = $_REQUEST['o'];
|
||||
if ($new_order[0] === '+') {
|
||||
$order_direction = '+';
|
||||
$new_order = substr($new_order, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue