diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-10-29 08:12:12 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-10-29 08:12:12 -0400 |
commit | 63ea5e26913bd0cb7500a35ff20832732e48b7e2 (patch) | |
tree | 5f2ff6806a769840e77fe23fcf445b9a1d37d6d2 /web | |
parent | b58251df7bbc02318fe498ffc850d726a61ffdcb (diff) | |
parent | b2cbb956a707ffb6a259488a3efa663a3b436507 (diff) | |
download | chat-63ea5e26913bd0cb7500a35ff20832732e48b7e2.tar.gz chat-63ea5e26913bd0cb7500a35ff20832732e48b7e2.tar.bz2 chat-63ea5e26913bd0cb7500a35ff20832732e48b7e2.zip |
Merge pull request #1224 from rgarmsen2295/plt-763
PLT-763 Fixed issue with refocusing not working after editing a post in the RHS
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/edit_post_modal.jsx | 2 | ||||
-rw-r--r-- | web/react/components/post_info.jsx | 2 | ||||
-rw-r--r-- | web/react/components/rhs_comment.jsx | 1 | ||||
-rw-r--r-- | web/react/components/rhs_root_post.jsx | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/web/react/components/edit_post_modal.jsx b/web/react/components/edit_post_modal.jsx index b259b3c18..e5bede026 100644 --- a/web/react/components/edit_post_modal.jsx +++ b/web/react/components/edit_post_modal.jsx @@ -84,7 +84,7 @@ export default class EditPostModal extends React.Component { if (!button) { return; } - self.setState({editText: $(button).attr('data-message'), title: $(button).attr('data-title'), channel_id: $(button).attr('data-channelid'), post_id: $(button).attr('data-postid'), comments: $(button).attr('data-comments'), refocusId: $(button).attr('data-refoucsid')}); + self.setState({editText: $(button).attr('data-message'), title: $(button).attr('data-title'), channel_id: $(button).attr('data-channelid'), post_id: $(button).attr('data-postid'), comments: $(button).attr('data-comments'), refocusId: $(button).attr('data-refocusid')}); }); $(ReactDOM.findDOMNode(this.refs.modal)).on('shown.bs.modal', function onShown() { diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index 36260d77c..6937ec216 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -44,7 +44,7 @@ export default class PostInfo extends React.Component { role='menuitem' data-toggle='modal' data-target='#edit_post' - data-refoucsid='#post_textbox' + data-refocusid='#post_textbox' data-title={type} data-message={post.message} data-postid={post.id} diff --git a/web/react/components/rhs_comment.jsx b/web/react/components/rhs_comment.jsx index cfff04fa2..8c6324c72 100644 --- a/web/react/components/rhs_comment.jsx +++ b/web/react/components/rhs_comment.jsx @@ -93,6 +93,7 @@ export default class RhsComment extends React.Component { role='menuitem' data-toggle='modal' data-target='#edit_post' + data-refocusid='#reply_textbox' data-title='Comment' data-message={post.message} data-postid={post.id} diff --git a/web/react/components/rhs_root_post.jsx b/web/react/components/rhs_root_post.jsx index deef389e2..21e52b438 100644 --- a/web/react/components/rhs_root_post.jsx +++ b/web/react/components/rhs_root_post.jsx @@ -79,6 +79,7 @@ export default class RhsRootPost extends React.Component { role='menuitem' data-toggle='modal' data-target='#edit_post' + data-refocusid='#reply_textbox' data-title={type} data-message={post.message} data-postid={post.id} |