diff --git a/assets/css/pages/conversations/listPane.css b/assets/css/pages/conversations/listPane.css index d2729962..ef638417 100644 --- a/assets/css/pages/conversations/listPane.css +++ b/assets/css/pages/conversations/listPane.css @@ -6,4 +6,8 @@ .conversations-page-container .conversations-list-box { max-height: 100%; +} + +.conversations-page-container a.selected { + background: #f7f7f7; } \ No newline at end of file diff --git a/assets/js/pages/conversations/listPane.js b/assets/js/pages/conversations/listPane.js index 97b3c80f..0180a9a2 100644 --- a/assets/js/pages/conversations/listPane.js +++ b/assets/js/pages/conversations/listPane.js @@ -127,6 +127,10 @@ ComunicWeb.pages.conversations.listPane = { args.opener(info.ID); }); + //Check if it is the current conversation + if(args.currConvID == info.ID) + convLink.className = " selected"; + //Add conversation last activity on the rigth var lastActivityContainer = createElem2({ appendTo: convLink, diff --git a/assets/js/pages/conversations/main.js b/assets/js/pages/conversations/main.js index 077e072c..6068aa94 100644 --- a/assets/js/pages/conversations/main.js +++ b/assets/js/pages/conversations/main.js @@ -55,21 +55,23 @@ ComunicWeb.pages.conversations.main = { ComunicWeb.common.page.update_uri("Conversations", "conversations/" + id); } - //Display the list of conversation - ComunicWeb.pages.conversations.listPane.display(leftArea, { - opener: conversationOpener - }); - //Check if a conversation has to be opened + var currConvID = 0; if(args.subfolder){ //Determine conversation ID var convID = args.subfolder; if(convID.includes("/")) convID = convID.split("/")[0]; - + currConvID = Number(convID); //Open the conversation - conversationOpener(Number(convID)); + conversationOpener(currConvID); } + + //Display the list of conversation + ComunicWeb.pages.conversations.listPane.display(leftArea, { + opener: conversationOpener, + currConvID: currConvID + }); } } \ No newline at end of file