prefs: code cleanup

This commit is contained in:
Andrew Dolgov 2010-11-21 13:23:46 +03:00
parent f695cdb220
commit 83331f6e1d
1 changed files with 1 additions and 23 deletions

View File

@ -73,33 +73,11 @@ function notify_callback2(transport) {
} }
function updateFeedList(sort_key) { function updateFeedList(sort_key) {
try {
var feed_search = $("feed_search");
var search = "";
if (feed_search) { search = feed_search.value; }
var slat = $("show_last_article_times");
var slat_checked = false;
if (slat) {
slat_checked = slat.checked;
}
var query = "?op=pref-feeds" +
"&sort=" + param_escape(sort_key) +
"&slat=" + param_escape(slat_checked) +
"&search=" + param_escape(search);
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: query, parameters: "?op=pref-feeds",
onComplete: function(transport) { onComplete: function(transport) {
feedlist_callback2(transport); feedlist_callback2(transport);
} }); } });
} catch (e) {
exception_error("updateFeedList", e);
}
} }
function updateUsersList(sort_key) { function updateUsersList(sort_key) {