1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-06 20:49:15 +00:00

user prefs: add search, misc code cleanup

This commit is contained in:
Andrew Dolgov
2008-05-17 04:32:36 +01:00
parent 477402d827
commit a5bd7bf051
4 changed files with 55 additions and 26 deletions

View File

@@ -285,8 +285,13 @@ function updateUsersList(sort_key) {
return
}
var user_search = document.getElementById("user_search");
var search = "";
if (user_search) { search = user_search.value; }
xmlhttp.open("GET", "backend.php?op=pref-users&sort="
+ param_escape(sort_key), true);
+ param_escape(sort_key) +
"&search=" + param_escape(search), true);
xmlhttp.onreadystatechange=userlist_callback;
xmlhttp.send(null);