|
|
@@ -233,7 +233,8 @@ function addHoverButtons(hover, msg) {
|
|
|
function doCreateMessageDom(msg) {
|
|
|
var dom = document.createElement("div")
|
|
|
,msgBlock = document.createElement("div")
|
|
|
- ,hoverReaction = document.createElement("li");
|
|
|
+ ,hoverReaction = document.createElement("li")
|
|
|
+ ,attachmentSummary = document.createElement("summary");
|
|
|
dom.hover = document.createElement("ul");
|
|
|
|
|
|
dom.attachments = document.createElement("ul");
|
|
|
@@ -241,6 +242,7 @@ function doCreateMessageDom(msg) {
|
|
|
dom.ts = document.createElement("div");
|
|
|
dom.textDom = document.createElement("div");
|
|
|
dom.authorName = document.createElement("span");
|
|
|
+ dom.attachmentWrapper = document.createElement("details");
|
|
|
|
|
|
dom.className = R.klass.msg.item;
|
|
|
dom.ts.className = R.klass.msg.ts;
|
|
|
@@ -256,7 +258,10 @@ function doCreateMessageDom(msg) {
|
|
|
msgBlock.appendChild(dom.authorName);
|
|
|
msgBlock.appendChild(dom.textDom);
|
|
|
msgBlock.appendChild(dom.ts);
|
|
|
- msgBlock.appendChild(dom.attachments);
|
|
|
+ attachmentSummary.textContent = "attachment";
|
|
|
+ dom.attachmentWrapper.appendChild(attachmentSummary);
|
|
|
+ dom.attachmentWrapper.appendChild(dom.attachments);
|
|
|
+ msgBlock.appendChild(dom.attachmentWrapper);
|
|
|
|
|
|
dom.edited = document.createElement("div");
|
|
|
dom.edited.className = R.klass.msg.edited;
|