summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-06-18 17:15:21 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-06-18 17:15:21 -0700
commit4e8e00e94fbe7ed07025b7d8906a3cd9209b687f (patch)
treed1a43d1266f053300f665392722a090bd97257f8 /web
parent3cd793fcb9bb02d5a130f277bff18f93db13d970 (diff)
downloadchat-4e8e00e94fbe7ed07025b7d8906a3cd9209b687f.tar.gz
chat-4e8e00e94fbe7ed07025b7d8906a3cd9209b687f.tar.bz2
chat-4e8e00e94fbe7ed07025b7d8906a3cd9209b687f.zip
Fixed ability to be able to delete a specific invite field within the invite new member form instead of just removing the bottom one every time
Diffstat (limited to 'web')
-rw-r--r--web/react/components/invite_member_modal.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx
index a1b8da6e4..2ab43d2a0 100644
--- a/web/react/components/invite_member_modal.jsx
+++ b/web/react/components/invite_member_modal.jsx
@@ -123,7 +123,7 @@ module.exports = React.createClass({
<div key={"key" + index}>
{ true ?
<div>
- <button type="button" className="btn remove__member" onClick={function(){self.removeInviteFields(index);}}>×</button>
+ <button type="button" className="btn remove__member" onClick={this.removeInviteFields.bind(this, index)}>×</button>
</div>
: ""}
<div className={ email_error ? "form-group invite has-error" : "form-group invite" }>