Conversations page admit conversation number as subfolder

This commit is contained in:
Pierre 2018-05-15 21:34:02 +02:00
parent 73dfc842af
commit ebd2fcf4f5

View File

@ -50,11 +50,26 @@ ComunicWeb.pages.conversations.main = {
//Open the conversation //Open the conversation
ComunicWeb.pages.conversations.conversation.open(id, rightArea); ComunicWeb.pages.conversations.conversation.open(id, rightArea);
//Update website URI
ComunicWeb.common.page.update_uri("Conversations", "conversations/" + id);
} }
//Display the list of conversation //Display the list of conversation
ComunicWeb.pages.conversations.listPane.display(leftArea, { ComunicWeb.pages.conversations.listPane.display(leftArea, {
opener: conversationOpener opener: conversationOpener
}); });
//Check if a conversation has to be opened
if(args.subfolder){
//Determine conversation ID
var convID = args.subfolder;
if(convID.includes("/"))
convID = convID.split("/")[0];
//Open the conversation
conversationOpener(Number(convID));
}
} }
} }