mirror of
https://github.com/fergalmoran/dss.git
synced 2026-04-17 02:05:01 +00:00
25 lines
644 B
JavaScript
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';
|
|
}
|
|
});
|