aboutsummaryrefslogtreecommitdiff
path: root/views.js
diff options
context:
space:
mode:
Diffstat (limited to 'views.js')
-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 () {