mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
much smarter handling of series collection rendering.
This commit is contained in:
parent
263700954e
commit
b9b9ad6fb5
10 changed files with 117 additions and 94 deletions
|
@ -49,8 +49,8 @@ define(
|
|||
this.searchCollection = new AddSeriesCollection();
|
||||
|
||||
this.searchCollection.fetch({
|
||||
data : { term: this.ui.searchText.val() },
|
||||
success: function () {
|
||||
data: { term: this.ui.searchText.val() }
|
||||
}).done(function () {
|
||||
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
|
||||
deferred.resolve();
|
||||
self.collection.add(self.searchCollection.shift());
|
||||
|
@ -59,12 +59,10 @@ define(
|
|||
self._showAll();
|
||||
}
|
||||
|
||||
},
|
||||
fail : function () {
|
||||
}).fail(function () {
|
||||
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
|
||||
deferred.reject();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return deferred.promise();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue