FIX: quoting a section inside expanded reply misattributed

1. expand "in reply to"
2. select text
3. quote reply

Was incorrectly attributed to parent post
This commit is contained in:
Sam 2016-03-30 17:34:31 +11:00
parent 4d5074994c
commit 4d71356e52
1 changed files with 10 additions and 8 deletions

View File

@ -27,14 +27,16 @@ export default createWidget('embedded-post', {
html(attrs, state) {
return [
h('div.row', [
this.attach('post-avatar', attrs),
h('div.topic-body', [
h('div.topic-meta-data', [
this.attach('poster-name', attrs),
this.attach('post-link-arrow', { above: state.above, shareUrl: attrs.shareUrl })
]),
new RawHtml({html: `<div class='cooked'>${attrs.cooked}</div>`})
h('div.reply', {attributes: {'data-post-id': attrs.id}}, [
h('div.row', [
this.attach('post-avatar', attrs),
h('div.topic-body', [
h('div.topic-meta-data', [
this.attach('poster-name', attrs),
this.attach('post-link-arrow', { above: state.above, shareUrl: attrs.shareUrl })
]),
new RawHtml({html: `<div class='cooked'>${attrs.cooked}</div>`})
])
])
])
];