From 973fe3c6faf777e72cade843c5cc3cf5227f2a0e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Nov 2010 13:35:16 +0300 Subject: rework search dialog --- feedlist.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'feedlist.js') diff --git a/feedlist.js b/feedlist.js index d694b9be7..05a16d865 100644 --- a/feedlist.js +++ b/feedlist.js @@ -1,6 +1,7 @@ var _feed_cur_page = 0; var _infscroll_disable = 0; var _infscroll_request_sent = 0; +var _search_query = false; var counter_timeout_id = false; @@ -100,12 +101,10 @@ function viewfeed(feed, subop, is_cat, offset) { var query = "?op=viewfeed&feed=" + feed + "&" + toolbar_query + "&subop=" + param_escape(subop); - if ($("search_form")) { - var search_query = Form.serialize("search_form"); - query = query + "&" + search_query; - $("search_form").query.value = ""; - closeInfoBox(true); + if (_search_query) { force_nocache = true; + query = query + "&" + _search_query; + _search_query = false; } // console.log("IS_CAT_STORED: " + activeFeedIsCat() + ", IS_CAT: " + is_cat); -- cgit v1.2.3