From 83331f6e1d2a16852ae800c5d0171d0577ee0d1f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Nov 2010 13:23:46 +0300 Subject: [PATCH] prefs: code cleanup --- prefs.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) 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) { -- 2.39.5