Sha256: 68076c14bb92b97ee924494a80b52a7c235f822e80af34f7ed6c50ba9368ef58

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

User = function() {
  this.name = Cookie.find('jschat-name');
  this.hideImages = Cookie.find('jschat-hideImages') === '1' ? true : false;
};

User.prototype.setName = function(name) {
  Cookie.create('jschat-name', name, 28, '/');
  this.name = name;
};

User.prototype.setHideImages = function(hideImages) {
  this.hideImages = hideImages;
  Cookie.create('jschat-hideImages', (hideImages ? '1' : '0'), 28, '/');
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jschat-0.3.7 lib/jschat/http/public/javascripts/app/models/user.js
jschat-0.3.6 lib/jschat/http/public/javascripts/app/models/user.js
jschat-0.3.5 lib/jschat/http/public/javascripts/app/models/user.js