mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 15:26:27 +00:00
Prepare file for improvments
This commit is contained in:
parent
ac85cd4e6e
commit
e6cdcd8ed8
@ -4,7 +4,7 @@
|
|||||||
* @author Pierre HUBERT
|
* @author Pierre HUBERT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ComunicWeb.components.conversations.chatWindows = {
|
const ConvChatWindow = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var {Object} __conversationsCache Chat windows cache
|
* @var {Object} __conversationsCache Chat windows cache
|
||||||
@ -850,10 +850,11 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
var userIsPoster = message.ID_user == userID();
|
var userIsPoster = message.ID_user == userID();
|
||||||
|
|
||||||
//Create message element
|
//Create message element
|
||||||
var messageContainer = createElem2({
|
const messageContainer = createElem2({
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "direct-chat-msg " + (userIsPoster ? "right" : "")
|
class: "direct-chat-msg " + (userIsPoster ? "right" : "")
|
||||||
});
|
});
|
||||||
|
messageContainer.setAttribute("data-chatwin-msg-id", message.ID)
|
||||||
|
|
||||||
//Display message header
|
//Display message header
|
||||||
var messageHeader = createElem2({
|
var messageHeader = createElem2({
|
||||||
@ -1161,5 +1162,7 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ComunicWeb.components.conversations.chatWindows = ConvChatWindow;
|
||||||
|
|
||||||
//Register conversations cache cleaning function
|
//Register conversations cache cleaning function
|
||||||
ComunicWeb.common.cacheManager.registerCacheCleaner("ComunicWeb.components.conversations.chatWindows.unloadAll");
|
ComunicWeb.common.cacheManager.registerCacheCleaner("ComunicWeb.components.conversations.chatWindows.unloadAll");
|
Loading…
Reference in New Issue
Block a user