]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.js
sortable user editor
[tt-rss.git] / prefs.js
index a91d430cb7034bd9d8a1c658b222717961a427da..c6daa6b6b6e1b8eda3a25a994647aa4797d2721c 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -157,7 +157,7 @@ function updateFeedList(sort_key) {
 
 }
 
-function updateUsersList() {
+function updateUsersList(sort_key) {
 
        if (!xmlhttp_ready(xmlhttp)) {
                printLockingError();
@@ -168,7 +168,8 @@ function updateUsersList() {
 
 //     p_notify("Loading, please wait...");
 
-       xmlhttp.open("GET", "backend.php?op=pref-users", true);
+       xmlhttp.open("GET", "backend.php?op=pref-users&sort="
+               + param_escape(sort_key), true);
        xmlhttp.onreadystatechange=userlist_callback;
        xmlhttp.send(null);