From e56d21a9208209d515b645f95d293eae51f51f8d Mon Sep 17 00:00:00 2001 From: hmhealey Date: Fri, 30 Oct 2015 16:33:51 -0400 Subject: Added a confirmation dialog for unsaved theme changes and removed unnecessary dialog close handling --- .../components/user_settings/user_settings_integrations.jsx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'web/react/components/user_settings/user_settings_integrations.jsx') diff --git a/web/react/components/user_settings/user_settings_integrations.jsx b/web/react/components/user_settings/user_settings_integrations.jsx index 4a9915a1f..95f02d9f4 100644 --- a/web/react/components/user_settings/user_settings_integrations.jsx +++ b/web/react/components/user_settings/user_settings_integrations.jsx @@ -11,24 +11,12 @@ export default class UserSettingsIntegrationsTab extends React.Component { super(props); this.updateSection = this.updateSection.bind(this); - this.handleClose = this.handleClose.bind(this); this.state = {}; } updateSection(section) { this.props.updateSection(section); } - handleClose() { - this.updateSection(''); - $('.ps-container.modal-body').scrollTop(0); - $('.ps-container.modal-body').perfectScrollbar('update'); - } - componentDidMount() { - $('#user_settings').on('hidden.bs.modal', this.handleClose); - } - componentWillUnmount() { - $('#user_settings').off('hidden.bs.modal', this.handleClose); - } render() { let incomingHooksSection; let outgoingHooksSection; -- cgit v1.2.3-1-g7c22