mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 23:36:27 +00:00
Conversations page admit conversation number as subfolder
This commit is contained in:
parent
73dfc842af
commit
ebd2fcf4f5
@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user