mirror of
https://github.com/Mibew/java.git
synced 2025-04-11 07:10:13 +03:00
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
/**
|
|
* @preserve This file is part of Mibew Messenger project.
|
|
* http://mibew.org
|
|
*
|
|
* Copyright (c) 2005-2011 Mibew Messenger Community
|
|
* License: http://mibew.org/license.php
|
|
*/
|
|
|
|
(function(Mibew, Backbone){
|
|
|
|
/**
|
|
* Represents chat layout
|
|
*/
|
|
Mibew.Layouts.Chat = Backbone.Marionette.Layout.extend(
|
|
/** @lends Mibew.Layouts.Chat.prototype */
|
|
{
|
|
/**
|
|
* Template function
|
|
* @type Function
|
|
*/
|
|
template: Handlebars.templates.chat_layout,
|
|
|
|
/**
|
|
* Regions list
|
|
* @type Object
|
|
*/
|
|
regions: {
|
|
controlsRegion: '#controls-region',
|
|
avatarRegion: '#avatar-region',
|
|
messagesRegion: {
|
|
selector: '#messages-region',
|
|
regionType: Mibew.Regions.Messages
|
|
},
|
|
statusRegion: '#status-region',
|
|
messageFormRegion: '#message-form-region',
|
|
soundRegion: '#sound-region'
|
|
}
|
|
}
|
|
);
|
|
|
|
})(Mibew, Backbone); |