git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Commit e55f2b6f8739b7b56427b8bbdab3f5e3802ec8b0

fix bug where compose was only rendering on first screen

Ev Bogue committed on 5/25/2018, 9:08:50 PM
Parent: 11ede85b7634bfac97e4ee875592d5f8610f4433

Files changed

index.jschanged
index.jsView
@@ -15,13 +15,13 @@
1515 h('li', h('a', {href: '#' + id}, h('span.avatar--small', avatar.image(id)))),
1616 h('li', h('a', {href: '#' + id}, avatar.name(id))),
1717 h('li', h('a', 'Compose', {
1818 onclick: function () {
19- document.getElementById('screen')
19+ var currentScreen = document.getElementById('screen')
2020 var opts = {}
2121 opts.type = 'post'
2222 var composer = h('div.content#composer', h('div.message', compose(opts)))
23- screen.firstChild.insertBefore(composer, screen.firstChild.firstChild)
23+ currentScreen.firstChild.insertBefore(composer, currentScreen.firstChild.firstChild)
2424 }
2525 })),
2626 h('li', h('a', {href: '#'}, 'Public')),
2727 h('li', h('a', {href: '#private' }, 'Private')),

Built with git-ssb-web