summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/phpfspot.js b/phpfspot.js
index 6671eb2..b196a68 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -113,9 +113,6 @@ function startSearch()
request = request + '&from='+ from +'&to='+ to;
}
- var sort_order = document.getElementsByName('sort_order')[0];
- request = request + '&sort_order='+ sort_order.options[sort_order.selectedIndex].value;
-
HTML_AJAX.grab(encodeURI(request));
refreshAvailableTags();
@@ -402,6 +399,23 @@ function initSlider()
}
+function update_sort_order(obj)
+{
+ var objTemp = new Object();
+ objTemp['value'] = obj.options[obj.selectedIndex].value;
+
+ var retr = HTML_AJAX.post('rpc.php?action=update_sort_order', objTemp);
+
+ if(retr == "ok") {
+ showPhotoIndex();
+ }
+ else {
+ window.alert(retr);
+ }
+
+} // update_sort_order()
+
+
var startup = 1;
var calendar_shown = 0;
var calendar_mode = '';