diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-08-11 11:58:08 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-11 12:14:58 -0400 |
commit | f03e18280155b12ff78ffd57e843cfa70fe1a3eb (patch) | |
tree | a82401bc52a12df03d0fabc6db166749e5297ff5 /web/react | |
parent | 4127c2b258e49e6bb555340d2a5b638c50fd90a2 (diff) | |
download | chat-f03e18280155b12ff78ffd57e843cfa70fe1a3eb.tar.gz chat-f03e18280155b12ff78ffd57e843cfa70fe1a3eb.tar.bz2 chat-f03e18280155b12ff78ffd57e843cfa70fe1a3eb.zip |
switch to channel after creation
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/new_channel.jsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/react/components/new_channel.jsx b/web/react/components/new_channel.jsx index 973643de7..b00376758 100644 --- a/web/react/components/new_channel.jsx +++ b/web/react/components/new_channel.jsx @@ -60,8 +60,7 @@ module.exports = React.createClass({ $(this.refs.modal.getDOMNode()).modal('hide'); asyncClient.getChannel(data.id); - utils.updateTabTitle(channel.display_name); - utils.updateAddressBar(channel.name); + utils.switchChannel(data); this.refs.display_name.getDOMNode().value = ''; this.refs.channel_name.getDOMNode().value = ''; |