mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Conversations can be created
This commit is contained in:
parent
adb5696a52
commit
b0f6e5d2e0
@ -37,8 +37,8 @@ ComunicWeb.components.conversations.list = {
|
||||
var createButtonIcon = createElem("i", createButton);
|
||||
createButtonIcon.className = "fa fa-pencil";
|
||||
|
||||
//Display conversations list
|
||||
listBox.boxBody.innerHTML = "<p>Hello world</p>";
|
||||
//Get and display conversations list
|
||||
//TODO : implement
|
||||
|
||||
//Success
|
||||
return true;
|
||||
@ -171,7 +171,14 @@ ComunicWeb.components.conversations.list = {
|
||||
}
|
||||
|
||||
//Success
|
||||
alert("success");
|
||||
notifMessage = "The conversation was successfully created !";
|
||||
ComunicWeb.common.notificationSystem.showNotification(notifMessage, "success", 2);
|
||||
|
||||
//Remove the conversation box
|
||||
infos.listBox.rootElem.remove();
|
||||
|
||||
//Open the conversation (under construction)
|
||||
console.log("Open conversation ID: " + response.conversationID);
|
||||
})
|
||||
}
|
||||
}
|
@ -74,7 +74,7 @@ ComunicWeb.components.conversations.manager = {
|
||||
addButton.innerHTML = "Open a conversation";
|
||||
|
||||
|
||||
//Temporary behavior
|
||||
//Make button lives
|
||||
addButton.onclick = function(){
|
||||
ComunicWeb.components.conversations.list.display(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user