Conversations can be created

This commit is contained in:
Pierre 2017-06-10 15:18:03 +02:00
parent adb5696a52
commit b0f6e5d2e0
2 changed files with 11 additions and 4 deletions

View File

@ -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);
})
}
}

View File

@ -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);
}