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
2 changed files with 4 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue