aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEv Bogue <ev@evbogue.com>2019-05-22 13:35:53 -0500
committerEv Bogue <ev@evbogue.com>2019-05-22 13:35:53 -0500
commitcd8275fc2e451e9906937fc3b741a5a665212379 (patch)
tree142706b526e691962e432ebbf08b91c4d1c30d52
parent28e2fc486558f45b6b62ba1216e69314ec2bb07e (diff)
render new identity without page reload, remove sync button
-rw-r--r--views.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/views.js b/views.js
index 052ced7..292c154 100644
--- a/views.js
+++ b/views.js
@@ -25,16 +25,21 @@ function profilePage (src, keys) {
name: input.value
}
- publish(content, keys).then(function () {location.reload()})
+ publish(content, keys).then(post => {
+ open(post).then(msg => {
+ input.value = ''
+ scroller.insertBefore(render(msg, keys), scroller.childNodes[1])
+ })
+ })
}
}, ['Identify'])
]))
- profile.appendChild(h('button', {
+ /*profile.appendChild(h('button', {
onclick: function () {
sync(src, keys)
}
- }, ['Sync feed']))
+ }, ['Sync feed']))*/
profile.appendChild(h('button', {
onclick: function () {