prefs: code cleanup
This commit is contained in:
parent
f695cdb220
commit
83331f6e1d
1 changed files with 1 additions and 23 deletions
24
prefs.js
24
prefs.js
|
@ -73,33 +73,11 @@ function notify_callback2(transport) {
|
|||
}
|
||||
|
||||
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", {
|
||||
parameters: query,
|
||||
parameters: "?op=pref-feeds",
|
||||
onComplete: function(transport) {
|
||||
feedlist_callback2(transport);
|
||||
} });
|
||||
} catch (e) {
|
||||
exception_error("updateFeedList", e);
|
||||
}
|
||||
}
|
||||
|
||||
function updateUsersList(sort_key) {
|
||||
|
|
Loading…
Reference in a new issue