Files
dss/static/js/app/models/user.js
2013-04-29 11:25:19 +01:00

25 lines
644 B
JavaScript

/** @license
----------------------------------------------
Copyright (c) 2012, Fergal Moran. All rights reserved.
Code provided under the BSD License:
*/
var User = DSSModel.extend({
urlRoot:com.podnoms.settings.urlRoot + "user/",
isValid: function () {
this.errors = {};
return "";
},
avatarGravatar: function(){
return this.get('profile').avatar_type == 'gravatar';
},
avatarSocial: function(){
return this.get('profile').avatar_type == 'social';
},
avatarCustom: function(){
return this.get('profile').avatar_type == 'custom';
}
});