fix add existing series.

This commit is contained in:
Keivan Beigi 2013-09-18 12:43:37 -07:00
parent 42efef0bb2
commit 904061c2f0
3 changed files with 17 additions and 11 deletions

View file

@ -60,10 +60,10 @@ define(
_onLoadMore: function () {
var showingAll = this.resultCollectionView.showMore();
this.ui.searchBar.show();
if (showingAll) {
this.ui.loadMore.hide();
this.ui.searchBar.show();
}
},
@ -94,7 +94,7 @@ define(
this.collection.reset();
if (!options.term || options.term === this.collection.term) {
return;
return $.Deferred().resolve();
}
this.searchResult.show(new LoadingView());
@ -102,6 +102,8 @@ define(
this.currentSearchPromise = this.collection.fetch({
data: { term: options.term }
});
return this.currentSearchPromise;
},
_showResults: function () {