Return active profiles

This commit is contained in:
Ruud
2011-09-07 18:27:05 +02:00
parent 517e79dfce
commit 5489215ffe
3 changed files with 9 additions and 2 deletions
@@ -19,6 +19,13 @@ var QualityBase = new Class({
return this.profiles[id]
},
// Hide items when getting profiles
getActiveProfiles: function(){
return Object.filter(this.profiles, function(profile){
return !profile.data.hide
});
},
getQuality: function(id){
return this.qualities.filter(function(q){
return q.id == id;