fix #36
This commit is contained in:
parent
1eb47a4584
commit
1eb7880de9
3 changed files with 42 additions and 1 deletions
|
@ -62,7 +62,6 @@ function appendMessages(msg, blockHash, beforeHash, channel) {
|
|||
}
|
||||
|
||||
var el = document.createElement('div')
|
||||
el.className = 'entry'
|
||||
el.innerText = msg['content']
|
||||
|
||||
if (beforeHash !== null) {
|
||||
|
@ -87,6 +86,9 @@ function appendMessages(msg, blockHash, beforeHash, channel) {
|
|||
var div = clone.querySelectorAll("div")
|
||||
var identicon = clone.querySelectorAll("img")
|
||||
|
||||
div[0].classList.add('entry')
|
||||
div[0].setAttribute('timestamp', msg['meta']['time'])
|
||||
|
||||
div[0].setAttribute('data-bl', blockHash)
|
||||
div[2].textContent = msg['content']
|
||||
if (typeof msg['meta']['signer'] != 'undefined' && msg['meta']['signer'].length > 0){
|
||||
|
@ -158,6 +160,7 @@ function getBlocks(){
|
|||
loadMessage(blockList[i], blockList, i, ch);
|
||||
}
|
||||
}
|
||||
sortEntries()
|
||||
}
|
||||
|
||||
function loadMessage(blockHash, blockList, count, channel){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue