mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 15:43:08 +00:00
Fix the filter modes on the movie list xD
This commit is contained in:
parent
b51916fb2b
commit
3d33e630ec
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 : {
|
||||
title : {
|
||||
sortKey : 'sortTitle'
|
||||
|
|
Loading…
Reference in a new issue