Manage page base
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user