git ssb

2+

ev / mvd



Commit c909de36e0325388afbaa5b1d6050b073e2fd3f8

fix the bug where reply was being set to type: post

Ev Bogue committed on 5/28/2018, 4:12:52 AM
Parent: 03bb1e7886ec655bc64f6accbb9f44a700be20d0

Files changed

compose.jschanged
render.jschanged
compose.jsView
@@ -61,8 +61,10 @@
6161 } else if (opts.branch) {
6262 //cancel reply composer
6363 cancel = document.getElementById('re:' + opts.branch.substring(0,44))
6464 cancel.parentNode.removeChild(cancel)
65 + message = document.getElementById(opts.branch.substring(0,44))
66 + message.appendChild(fallback.buttons)
6567 } else {
6668 // cancel generic composer
6769 cancel = document.getElementById('composer')
6870 cancel.parentNode.removeChild(cancel)
render.jsView
@@ -56,14 +56,16 @@
5656
5757 var buttons = h('div.buttons')
5858 buttons.appendChild(h('button.btn', 'Reply', {
5959 onclick: function () {
60 + opts.type = 'post'
6061 var r = message.childNodes.length - 1
6162 delete opts.updated
6263 delete opts.original
6364 delete fallback.messageText
6465 fallback.buttons = message.childNodes[r]
6566 var compose = h('div.message#re:' + msg.key.substring(0, 44), composer(opts, fallback))
67 + message.removeChild(message.childNodes[r])
6668 message.parentNode.insertBefore(compose, message.nextSibling)
6769 }
6870 }))
6971

Built with git-ssb-web