mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:55:55 +00:00
do not set active feed id in headlines callback, bailout if received data for currently deselected feed
This commit is contained in:
@@ -132,6 +132,8 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
|
||||
|
||||
console.log(query);
|
||||
|
||||
setActiveFeedId(feed, is_cat);
|
||||
|
||||
new Ajax.Request("backend.php", {
|
||||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
|
||||
@@ -49,7 +49,8 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
||||
return;
|
||||
}
|
||||
|
||||
setActiveFeedId(feed_id, is_cat);
|
||||
if (feed_id != getActiveFeedId() || is_cat != activeFeedIsCat())
|
||||
return;
|
||||
|
||||
/* dijit.getEnclosingWidget(
|
||||
document.forms["main_toolbar_form"].update).attr('disabled',
|
||||
|
||||
Reference in New Issue
Block a user