summaryrefslogtreecommitdiffstats
path: root/web/react/components/new_channel.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-04 10:57:21 -0700
committernickago <ngonella@calpoly.edu>2015-08-04 10:57:54 -0700
commit83b632a3c2870ce7d77434f2d1e3127818a13e20 (patch)
treea23b261b2ecca3d9679ca526a6058bffeddda30f /web/react/components/new_channel.jsx
parent2c46ee8420eb19d827d3f2072bd536aae2038f84 (diff)
downloadchat-83b632a3c2870ce7d77434f2d1e3127818a13e20.tar.gz
chat-83b632a3c2870ce7d77434f2d1e3127818a13e20.tar.bz2
chat-83b632a3c2870ce7d77434f2d1e3127818a13e20.zip
Placed button inside of form to allow for submission on strike of enter key
Diffstat (limited to 'web/react/components/new_channel.jsx')
-rw-r--r--web/react/components/new_channel.jsx16
1 files changed, 8 insertions, 8 deletions
diff --git a/web/react/components/new_channel.jsx b/web/react/components/new_channel.jsx
index 49e088458..454af38e7 100644
--- a/web/react/components/new_channel.jsx
+++ b/web/react/components/new_channel.jsx
@@ -110,8 +110,8 @@ module.exports = React.createClass({
</button>
<h4 className="modal-title">New Channel</h4>
</div>
- <div className="modal-body">
- <form role="form">
+ <form role="form">
+ <div className="modal-body">
<div className={ this.state.display_name_error ? "form-group has-error" : "form-group" }>
<label className='control-label'>Display Name</label>
<input onKeyUp={this.displayNameKeyUp} type="text" ref="display_name" className="form-control" placeholder="Enter display name" maxLength="64" />
@@ -127,12 +127,12 @@ module.exports = React.createClass({
<textarea className="form-control no-resize" ref="channel_desc" rows="3" placeholder="Description" maxLength="1024"></textarea>
</div>
{ server_error }
- </form>
- </div>
- <div className="modal-footer">
- <button type="button" className="btn btn-default" data-dismiss="modal">Close</button>
- <button onClick={this.handleSubmit} type="button" className="btn btn-primary">Create New Channel</button>
- </div>
+ </div>
+ <div className="modal-footer">
+ <button type="button" className="btn btn-default" data-dismiss="modal">Close</button>
+ <button onClick={this.handleSubmit} type="submit" className="btn btn-primary">Create New Channel</button>
+ </div>
+ </form>
</div>
</div>
</div>