summaryrefslogtreecommitdiffstats
path: root/web/react/components/edit_post_modal.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-15 12:07:06 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-15 15:00:28 -0400
commit1571a9a2dfbe6dd3bb598a92f7f62e457b613241 (patch)
treec615bb285e59cc2fb9faa61bbbe02af858b9212b /web/react/components/edit_post_modal.jsx
parentfda7a99e8ce15d51f1d7b2667015af2ef8ab1dec (diff)
downloadchat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.tar.gz
chat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.tar.bz2
chat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.zip
Fixing most deprication warnings
Diffstat (limited to 'web/react/components/edit_post_modal.jsx')
-rw-r--r--web/react/components/edit_post_modal.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/react/components/edit_post_modal.jsx b/web/react/components/edit_post_modal.jsx
index 165a28a64..3dbff18cb 100644
--- a/web/react/components/edit_post_modal.jsx
+++ b/web/react/components/edit_post_modal.jsx
@@ -52,7 +52,7 @@ export default class EditPostModal extends React.Component {
handleEditKeyPress(e) {
if (e.which === 13 && !e.shiftKey && !e.altKey) {
e.preventDefault();
- React.findDOMNode(this.refs.editbox).blur();
+ ReactDOM.findDOMNode(this.refs.editbox).blur();
this.handleEdit(e);
}
}
@@ -62,16 +62,16 @@ export default class EditPostModal extends React.Component {
componentDidMount() {
var self = this;
- $(React.findDOMNode(this.refs.modal)).on('hidden.bs.modal', function onHidden() {
+ $(ReactDOM.findDOMNode(this.refs.modal)).on('hidden.bs.modal', function onHidden() {
self.setState({editText: '', title: '', channel_id: '', post_id: '', comments: 0, refocusId: '', error: ''});
});
- $(React.findDOMNode(this.refs.modal)).on('show.bs.modal', function onShow(e) {
+ $(ReactDOM.findDOMNode(this.refs.modal)).on('show.bs.modal', function onShow(e) {
var button = e.relatedTarget;
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')});
});
- $(React.findDOMNode(this.refs.modal)).on('shown.bs.modal', function onShown() {
+ $(ReactDOM.findDOMNode(this.refs.modal)).on('shown.bs.modal', function onShown() {
self.refs.editbox.resize();
});
}