summaryrefslogtreecommitdiffstats
path: root/web/react/components/rename_channel_modal.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-15 15:18:39 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-15 15:18:39 -0400
commitc890e21cefe135a74a4a7235b704e7af95decc5c (patch)
tree46625abd1f88a70e4c5774ac37bdd7d10e899768 /web/react/components/rename_channel_modal.jsx
parentbd2fec0fb16783049ec555d8015f49a0ed3ccf80 (diff)
parent8d630fc3ee6a06b8daeb117a9e166c5dfba55a52 (diff)
downloadchat-c890e21cefe135a74a4a7235b704e7af95decc5c.tar.gz
chat-c890e21cefe135a74a4a7235b704e7af95decc5c.tar.bz2
chat-c890e21cefe135a74a4a7235b704e7af95decc5c.zip
Merge pull request #1075 from mattermost/plt-577
PLT-577 Upgrading dependencies.
Diffstat (limited to 'web/react/components/rename_channel_modal.jsx')
-rw-r--r--web/react/components/rename_channel_modal.jsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/web/react/components/rename_channel_modal.jsx b/web/react/components/rename_channel_modal.jsx
index 7f7d4554c..80f0956f2 100644
--- a/web/react/components/rename_channel_modal.jsx
+++ b/web/react/components/rename_channel_modal.jsx
@@ -76,13 +76,13 @@ export default class RenameChannelModal extends React.Component {
Client.updateChannel(channel,
function handleUpdateSuccess() {
- $(React.findDOMNode(this.refs.modal)).modal('hide');
+ $(ReactDOM.findDOMNode(this.refs.modal)).modal('hide');
AsyncClient.getChannel(channel.id);
Utils.updateAddressBar(channel.name);
- React.findDOMNode(this.refs.displayName).value = '';
- React.findDOMNode(this.refs.channelName).value = '';
+ ReactDOM.findDOMNode(this.refs.displayName).value = '';
+ ReactDOM.findDOMNode(this.refs.channelName).value = '';
}.bind(this),
function handleUpdateError(err) {
state.serverError = err.message;
@@ -92,15 +92,15 @@ export default class RenameChannelModal extends React.Component {
);
}
onNameChange() {
- this.setState({channelName: React.findDOMNode(this.refs.channelName).value});
+ this.setState({channelName: ReactDOM.findDOMNode(this.refs.channelName).value});
}
onDisplayNameChange() {
- this.setState({displayName: React.findDOMNode(this.refs.displayName).value});
+ this.setState({displayName: ReactDOM.findDOMNode(this.refs.displayName).value});
}
displayNameKeyUp() {
- const displayName = React.findDOMNode(this.refs.displayName).value.trim();
+ const displayName = ReactDOM.findDOMNode(this.refs.displayName).value.trim();
const channelName = Utils.cleanUpUrlable(displayName);
- React.findDOMNode(this.refs.channelName).value = channelName;
+ ReactDOM.findDOMNode(this.refs.channelName).value = channelName;
this.setState({channelName: channelName});
}
handleClose() {
@@ -119,11 +119,11 @@ export default class RenameChannelModal extends React.Component {
this.setState({displayName: button.attr('data-display'), channelName: button.attr('data-name'), channelId: button.attr('data-channelid')});
}
componentDidMount() {
- $(React.findDOMNode(this.refs.modal)).on('show.bs.modal', this.handleShow);
- $(React.findDOMNode(this.refs.modal)).on('hidden.bs.modal', this.handleClose);
+ $(ReactDOM.findDOMNode(this.refs.modal)).on('show.bs.modal', this.handleShow);
+ $(ReactDOM.findDOMNode(this.refs.modal)).on('hidden.bs.modal', this.handleClose);
}
componentWillUnmount() {
- $(React.findDOMNode(this.refs.modal)).off('hidden.bs.modal', this.handleClose);
+ $(ReactDOM.findDOMNode(this.refs.modal)).off('hidden.bs.modal', this.handleClose);
}
render() {
let displayNameError = null;