Revert "Load selected feed after a short timeout"

This reverts commit 17c5d44cf4.
This commit is contained in:
Andrew Dolgov 2013-06-12 14:04:31 +04:00
parent cfb4ea298d
commit f6ba763d6b
1 changed files with 6 additions and 13 deletions

View File

@ -2,7 +2,6 @@ var _infscroll_disable = 0;
var _infscroll_request_sent = 0; var _infscroll_request_sent = 0;
var _search_query = false; var _search_query = false;
var _viewfeed_last = 0; var _viewfeed_last = 0;
var _viewfeed_timeout = false;
var counters_last_request = 0; var counters_last_request = 0;
@ -133,13 +132,8 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
console.log(query); console.log(query);
if (_viewfeed_timeout) {
setFeedExpandoIcon(getActiveFeedId(), activeFeedIsCat(), 'images/blank_icon.gif');
clearTimeout(_viewfeed_timeout);
}
setActiveFeedId(feed, is_cat); setActiveFeedId(feed, is_cat);
_viewfeed_timeout = setTimeout(function()) {
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: query, parameters: query,
onComplete: function(transport) { onComplete: function(transport) {
@ -147,7 +141,6 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
headlines_callback2(transport, offset, background, infscroll_req); headlines_callback2(transport, offset, background, infscroll_req);
PluginHost.run(PluginHost.HOOK_FEED_LOADED, [feed, is_cat]); PluginHost.run(PluginHost.HOOK_FEED_LOADED, [feed, is_cat]);
} }); } });
}, 250); // 250ms delay
} catch (e) { } catch (e) {
exception_error("viewfeed", e); exception_error("viewfeed", e);