Skip to content

Commit

Permalink
Fixing some bug when sending a new tweet and refreshing the unified t…
Browse files Browse the repository at this point in the history
…imeline.
  • Loading branch information
cezarsa committed Mar 18, 2010
1 parent 373ab0a commit a25d3c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions background.html
Expand Up @@ -202,7 +202,7 @@
}
this.currentCallback = callback;

if(cacheOnly) {
if(cacheOnly || syncNew) {
if(this.currentScroll == 0) {
if(this.currentPage > this.maxCachedPages) {
this.currentPage = this.maxCachedPages;
Expand Down Expand Up @@ -1207,7 +1207,7 @@
callback([], timelineId);
return;
}
if(syncNew && this.unifiedVisible) {
if(syncNew && this.unifiedVisible && timelineId != 'unified') {
var timelineBaseId = timelineId.replace(/_.*$/, '');
if(OptionsBackend.get(timelineBaseId + '_include_unified')) {
var originalCallback = callback;
Expand Down
3 changes: 3 additions & 0 deletions popup.html
Expand Up @@ -434,6 +434,9 @@
},

refreshNew: function() {
if($("#loading").is(":visible")) {
return;
}
loadTimeline(true);
}
}
Expand Down

0 comments on commit a25d3c8

Please sign in to comment.