From: Andrew Dolgov Date: Sun, 21 Nov 2010 10:23:46 +0000 (+0300) Subject: prefs: code cleanup X-Git-Tag: 1.5.0~91 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=83331f6e1d2a16852ae800c5d0171d0577ee0d1f;p=tt-rss.git prefs: code cleanup --- diff --git a/prefs.js b/prefs.js index bcaa6b87..3a36c287 100644 --- a/prefs.js +++ b/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) {