Browse Source

Allow empty quality

pull/3423/head
Ruud 11 years ago
parent
commit
ba9c975335
  1. 13
      couchpotato/core/plugins/quality/static/quality.js

13
couchpotato/core/plugins/quality/static/quality.js

@ -29,9 +29,14 @@ var QualityBase = new Class({
}, },
getQuality: function(identifier){ getQuality: function(identifier){
return this.qualities.filter(function(q){ try {
return q.identifier == identifier; return this.qualities.filter(function(q){
}).pick(); return q.identifier == identifier;
}).pick();
}
catch(e){}
return {}
}, },
addSettings: function(){ addSettings: function(){
@ -104,7 +109,7 @@ var QualityBase = new Class({
var profile_list; var profile_list;
self.settings.createGroup({ self.settings.createGroup({
'label': 'Profile Defaults', 'label': 'Profile Defaults',
'description': '(Needs refresh \'' +(App.isMac() ? 'CMD+R' : 'F5')+ '\' after editing)' 'description': '(Needs refresh \'' +(App.isMac() ? 'CMD+R' : 'F5')+ '\' after editing)'
}).adopt( }).adopt(
new Element('.ctrlHolder#profile_ordering').adopt( new Element('.ctrlHolder#profile_ordering').adopt(
new Element('label[text=Order]'), new Element('label[text=Order]'),

Loading…
Cancel
Save