mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 13:30:29 +03:00
Update defaults values in JS Mibew.Models.Message
This commit is contained in:
parent
5483483031
commit
3c20e8cf5c
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user