Commit c909de36e0325388afbaa5b1d6050b073e2fd3f8
fix the bug where reply was being set to type: post
Ev Bogue committed on 5/28/2018, 4:12:52 AMParent: 03bb1e7886ec655bc64f6accbb9f44a700be20d0
Files changed
compose.js | changed |
render.js | changed |
compose.js | ||
---|---|---|
@@ -61,8 +61,10 @@ | ||
61 | 61 … | } else if (opts.branch) { |
62 | 62 … | //cancel reply composer |
63 | 63 … | cancel = document.getElementById('re:' + opts.branch.substring(0,44)) |
64 | 64 … | cancel.parentNode.removeChild(cancel) |
65 … | + message = document.getElementById(opts.branch.substring(0,44)) | |
66 … | + message.appendChild(fallback.buttons) | |
65 | 67 … | } else { |
66 | 68 … | // cancel generic composer |
67 | 69 … | cancel = document.getElementById('composer') |
68 | 70 … | cancel.parentNode.removeChild(cancel) |
render.js | ||
---|---|---|
@@ -56,14 +56,16 @@ | ||
56 | 56 … | |
57 | 57 … | var buttons = h('div.buttons') |
58 | 58 … | buttons.appendChild(h('button.btn', 'Reply', { |
59 | 59 … | onclick: function () { |
60 … | + opts.type = 'post' | |
60 | 61 … | var r = message.childNodes.length - 1 |
61 | 62 … | delete opts.updated |
62 | 63 … | delete opts.original |
63 | 64 … | delete fallback.messageText |
64 | 65 … | fallback.buttons = message.childNodes[r] |
65 | 66 … | var compose = h('div.message#re:' + msg.key.substring(0, 44), composer(opts, fallback)) |
67 … | + message.removeChild(message.childNodes[r]) | |
66 | 68 … | message.parentNode.insertBefore(compose, message.nextSibling) |
67 | 69 … | } |
68 | 70 … | })) |
69 | 71 … |
Built with git-ssb-web