diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-30 16:33:51 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-02 15:10:50 -0500 |
commit | e56d21a9208209d515b645f95d293eae51f51f8d (patch) | |
tree | e272c8e18998ba0b89125f81d1bd45d0fdb55059 /web/react/components/user_settings/user_settings_display.jsx | |
parent | 738568e5a9726b3a1b2536a20ab6627c5e9fb01e (diff) | |
download | chat-e56d21a9208209d515b645f95d293eae51f51f8d.tar.gz chat-e56d21a9208209d515b645f95d293eae51f51f8d.tar.bz2 chat-e56d21a9208209d515b645f95d293eae51f51f8d.zip |
Added a confirmation dialog for unsaved theme changes and removed unnecessary dialog close handling
Diffstat (limited to 'web/react/components/user_settings/user_settings_display.jsx')
-rw-r--r-- | web/react/components/user_settings/user_settings_display.jsx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/web/react/components/user_settings/user_settings_display.jsx b/web/react/components/user_settings/user_settings_display.jsx index d086c78a9..8c31fdd93 100644 --- a/web/react/components/user_settings/user_settings_display.jsx +++ b/web/react/components/user_settings/user_settings_display.jsx @@ -25,7 +25,6 @@ export default class UserSettingsDisplay extends React.Component { this.handleClockRadio = this.handleClockRadio.bind(this); this.handleNameRadio = this.handleNameRadio.bind(this); this.updateSection = this.updateSection.bind(this); - this.handleClose = this.handleClose.bind(this); this.state = getDisplayStateFromStores(); } @@ -53,15 +52,6 @@ export default class UserSettingsDisplay extends React.Component { this.setState(getDisplayStateFromStores()); this.props.updateSection(section); } - handleClose() { - this.updateSection(''); - } - componentDidMount() { - $('#user_settings').on('hidden.bs.modal', this.handleClose); - } - componentWillUnmount() { - $('#user_settings').off('hidden.bs.modal', this.handleClose); - } render() { const serverError = this.state.serverError || null; let clockSection; |