Update defaults values in JS Mibew.Models.Message

This commit is contained in:
Dmitriy Simushev 2013-04-24 14:47:49 +00:00
parent 5483483031
commit 3c20e8cf5c
3 changed files with 26 additions and 2 deletions

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(a){a.Models.Message=a.Models.Base.extend({defaults:{message:""},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6})})(Mibew);
(function(a){a.Models.Message=a.Models.Base.extend({defaults:{id:0,kind:null,created:0,name:"",message:""},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6})})(Mibew);

View File

@ -73,7 +73,7 @@ b.Utils.playSound=function(a){c("body").append('<audio autoplay style="display:
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(a){a.Models.Message=a.Models.Base.extend({defaults:{message:""},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6})})(Mibew);
(function(a){a.Models.Message=a.Models.Base.extend({defaults:{id:0,kind:null,created:0,name:"",message:""},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6})})(Mibew);
/*
This file is part of Mibew Messenger project.
http://mibew.org

View File

@ -18,6 +18,30 @@
* Default values of model
*/
defaults : {
/**
* Message ID
* @type Number
*/
id: 0,
/**
* Message kind. See Mibew.Models.Message.KIND_* for details
* @type Number
*/
kind: null,
/**
* Unix timestamp when message was created
* @type Number
*/
created: 0,
/**
* Name of the message sender
* @type String
*/
name: '',
/**
* Text of the message
* @type String