summaryrefslogtreecommitdiffstats
path: root/web/react/components/team_settings_modal.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-03 12:37:41 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-03 12:37:41 -0500
commitbe442b6221406fae96b2c3a74f1214e058b28e1d (patch)
tree6e8f3d3c3e875e150479e20642a4db9e61f32b5a /web/react/components/team_settings_modal.jsx
parent6428878e20fa54b7bb6b2bf6e0aaaeb637affa59 (diff)
downloadchat-be442b6221406fae96b2c3a74f1214e058b28e1d.tar.gz
chat-be442b6221406fae96b2c3a74f1214e058b28e1d.tar.bz2
chat-be442b6221406fae96b2c3a74f1214e058b28e1d.zip
Changed TeamSettingsModal click handlers to not affect other modals
Diffstat (limited to 'web/react/components/team_settings_modal.jsx')
-rw-r--r--web/react/components/team_settings_modal.jsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/react/components/team_settings_modal.jsx b/web/react/components/team_settings_modal.jsx
index 17fe31c65..4d47db2a8 100644
--- a/web/react/components/team_settings_modal.jsx
+++ b/web/react/components/team_settings_modal.jsx
@@ -17,11 +17,13 @@ export default class TeamSettingsModal extends React.Component {
};
}
componentDidMount() {
- $('body').on('click', '.modal-back', function handleBackClick() {
+ const modal = $(ReactDOM.findDOMNode(this.refs.modal));
+
+ modal.on('click', '.modal-back', function handleBackClick() {
$(this).closest('.modal-dialog').removeClass('display--content');
$(this).closest('.modal-dialog').find('.settings-table .nav li.active').removeClass('active');
});
- $('body').on('click', '.modal-header .close', () => {
+ modal.on('click', '.modal-header .close', () => {
setTimeout(() => {
$('.modal-dialog.display--content').removeClass('display--content');
}, 500);