mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Smiley are parsed in conversation element
This commit is contained in:
parent
85b16aec0a
commit
71a1a1b9d1
@ -69,4 +69,8 @@
|
||||
*/
|
||||
#conversationsElem .conversation-msg-image {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
#conversationsElem .direct-chat-text .emoji {
|
||||
height: 1em;
|
||||
}
|
@ -141,6 +141,7 @@ ComunicWeb.components.conversations.chatWindows = {
|
||||
class: "form-control",
|
||||
placeholder: "New message...",
|
||||
});
|
||||
inputText.maxLength = 200;
|
||||
|
||||
//Enable textarea 2.0 on the message
|
||||
var textarea2 = new ComunicWeb.components.textarea();
|
||||
@ -747,7 +748,7 @@ ComunicWeb.components.conversations.chatWindows = {
|
||||
});
|
||||
|
||||
//Add text message
|
||||
createElem2({
|
||||
var textMessage = createElem2({
|
||||
appendTo: messageTargetElem,
|
||||
type: "span",
|
||||
innerHTML: messageInfos.message,
|
||||
@ -774,6 +775,11 @@ ComunicWeb.components.conversations.chatWindows = {
|
||||
userAccountImage.src = userInfos.accountImage;
|
||||
}
|
||||
|
||||
//Parse emojies in text message
|
||||
ComunicWeb.components.emoji.parser.parse({
|
||||
element: textMessage,
|
||||
});
|
||||
|
||||
//Enable (again) slimscrool
|
||||
$(convInfos.box.messagesArea).slimscroll({
|
||||
height: "250px",
|
||||
|
@ -18,7 +18,7 @@ ComunicWeb.components.emoji.parser = {
|
||||
* Parse emojies
|
||||
*
|
||||
* @param {Object} infos Informations about the area to parse
|
||||
* @info {HTMLElement} element The element to parser
|
||||
* @info {HTMLElement} element The element to parse
|
||||
* @return {Boolean} True for a success
|
||||
*/
|
||||
parse: function(infos){
|
||||
|
Loading…
Reference in New Issue
Block a user