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