Manage page base

This commit is contained in:
Ruud
2012-01-04 20:15:37 +01:00
parent e9cc59960d
commit 1c75bfb9b0
22 changed files with 378 additions and 129 deletions
@@ -58,7 +58,7 @@ var Profile = new Class({
if(data.types)
Object.each(data.types, self.addType.bind(self))
self.addType();
},
@@ -133,6 +133,15 @@ var Profile = new Class({
},
getTypes: function(){
var self = this;
return self.types.filter(function(type){
return type.get('quality_id')
});
},
del: function(){
var self = this;
@@ -281,6 +290,10 @@ Profile.Type = new Class({
}
},
get: function(key){
return this.data[key];
},
del: function(){
var self = this;