summaryrefslogtreecommitdiffstats
path: root/rpc.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-01 12:06:46 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-01 12:06:46 +0100
commit5bc350814a9426a89e8ab06728badad9430d4015 (patch)
treef8d053012af162c18beb14b51b4dcda86b55b0dd /rpc.php
parentbb3bcfbb5f2627788d4ee498ddbd3b7024a2d326 (diff)
sort-order is now set via AJAX, not while submit a search-query
Diffstat (limited to 'rpc.php')
-rw-r--r--rpc.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/rpc.php b/rpc.php
index 0bd04fe..1f01633 100644
--- a/rpc.php
+++ b/rpc.php
@@ -101,13 +101,19 @@ class PHPFSPOT_RPC {
break;
case 'search':
- $fspot->startSearch($_GET['for'], $_GET['sort_order'], $_GET['from'], $_GET['to']);
+ $fspot->startSearch($_GET['for'], $_GET['from'], $_GET['to']);
if((isset($_GET['from']) && $fspot->isValidDate($_GET['from'])) &&
(isset($_GET['to']) && $fspot->isValidDate($_GET['to']))) {
}
else {
- $fspot->startSearch($_GET['for'], $_GET['sort_order']);
+ $fspot->startSearch($_GET['for']);
+ }
+ break;
+
+ case 'update_sort_order':
+ if(isset($_POST['value']) && is_string($_POST['value'])) {
+ print $fspot->updateSortOrder($_POST['value']);
}
break;