diff --git a/assets/js/components/conversations/list.js b/assets/js/components/conversations/list.js index 08d8c7d3..185ab480 100644 --- a/assets/js/components/conversations/list.js +++ b/assets/js/components/conversations/list.js @@ -37,8 +37,8 @@ ComunicWeb.components.conversations.list = { var createButtonIcon = createElem("i", createButton); createButtonIcon.className = "fa fa-pencil"; - //Display conversations list - listBox.boxBody.innerHTML = "

Hello world

"; + //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); }) } } \ No newline at end of file diff --git a/assets/js/components/conversations/manager.js b/assets/js/components/conversations/manager.js index 0b1debf0..946971bb 100644 --- a/assets/js/components/conversations/manager.js +++ b/assets/js/components/conversations/manager.js @@ -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); }