aboutsummaryrefslogtreecommitdiff
path: root/composer.js
diff options
context:
space:
mode:
authorEv Bogue <ev@evbogue.com>2019-12-15 08:40:05 -0600
committerEv Bogue <ev@evbogue.com>2019-12-15 08:40:05 -0600
commit0ce80cde9303db97124ada1a5745aed554041859 (patch)
treecbf99255c2654217ee5107c7176290cb34738924 /composer.js
parent55989c498fd62a47b47cb033a764fd4dd23ed5a6 (diff)
fix some glitches with the edit function
Diffstat (limited to 'composer.js')
-rw-r--r--composer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/composer.js b/composer.js
index 5c46fce..9c1f236 100644
--- a/composer.js
+++ b/composer.js
@@ -54,8 +54,9 @@ function composer (keys, reply, gotName, edit) {
if (edit) {
console.log('APPENDING EDIT')
var gotit = document.getElementById(reply.key)
- gotit.appendChild(h('div', {classList: 'submessage'}, [render(msg, keys)]))
+ //gotit.appendChild(h('div', {classList: 'submessage'}, [render(msg, keys)]))
var newContent = h('div', {innerHTML: marked(msg.text)})
+ //console.log(gotit.childNodes.length)
gotit.firstChild.replaceChild(newContent, gotit.firstChild.childNodes[1])
}
if (reply) {