mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Merge pull request #531 from Radarr/patch/fix-filter-movie-list
Fix the filter modes on the movie list xD
This commit is contained in:
commit
09fb58c3e9
1 changed files with 91 additions and 135 deletions
|
@ -85,50 +85,6 @@ var Collection = PageableCollection.extend({
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
importFromList : function(models) {
|
|
||||||
var self = this;
|
|
||||||
|
|
||||||
var proxy = _.extend(new Backbone.Model(), {
|
|
||||||
id : "",
|
|
||||||
|
|
||||||
url : self.url + "/import",
|
|
||||||
|
|
||||||
toJSON : function() {
|
|
||||||
return models;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
this.listenTo(proxy, "sync", function(proxyModel, models) {
|
|
||||||
this.add(models, { merge : true});
|
|
||||||
this.trigger("save", this);
|
|
||||||
});
|
|
||||||
|
|
||||||
return proxy.save();
|
|
||||||
},
|
|
||||||
|
|
||||||
filterModes : {
|
|
||||||
'all' : [
|
|
||||||
null,
|
|
||||||
null
|
|
||||||
],
|
|
||||||
'continuing' : [
|
|
||||||
'status',
|
|
||||||
'continuing'
|
|
||||||
],
|
|
||||||
'ended' : [
|
|
||||||
'status',
|
|
||||||
'ended'
|
|
||||||
],
|
|
||||||
'monitored' : [
|
|
||||||
'monitored',
|
|
||||||
true
|
|
||||||
],
|
|
||||||
'missing' : [
|
|
||||||
'downloaded',
|
|
||||||
false
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
sortMappings : {
|
sortMappings : {
|
||||||
title : {
|
title : {
|
||||||
sortKey : 'sortTitle'
|
sortKey : 'sortTitle'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue