Changed user_settings1 to user_settings and removed vestigial css
Этот коммит содержится в:
@@ -22,7 +22,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
$(this.refs.modal.getDOMNode()).on('hidden.bs.modal', function() {
|
$(this.refs.modal.getDOMNode()).on('hidden.bs.modal', function() {
|
||||||
$('#user_settings1').modal('show');
|
$('#user_settings').modal('show');
|
||||||
self.setState({moreInfo: []});
|
self.setState({moreInfo: []});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
$(this.refs.modal.getDOMNode()).on('hidden.bs.modal', function(e) {
|
$(this.refs.modal.getDOMNode()).on('hidden.bs.modal', function(e) {
|
||||||
$('#user_settings1').modal('show');
|
$('#user_settings').modal('show');
|
||||||
self.setState({moreInfo: []});
|
self.setState({moreInfo: []});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ var NavbarDropdown = React.createClass({
|
|||||||
<span className='dropdown__icon' dangerouslySetInnerHTML={{__html: Constants.MENU_ICON}} />
|
<span className='dropdown__icon' dangerouslySetInnerHTML={{__html: Constants.MENU_ICON}} />
|
||||||
</a>
|
</a>
|
||||||
<ul className='dropdown-menu' role='menu'>
|
<ul className='dropdown-menu' role='menu'>
|
||||||
<li><a href='#' data-toggle='modal' data-target='#user_settings1'>Account Settings</a></li>
|
<li><a href='#' data-toggle='modal' data-target='#user_settings'>Account Settings</a></li>
|
||||||
{teamSettings}
|
{teamSettings}
|
||||||
{inviteLink}
|
{inviteLink}
|
||||||
{teamLink}
|
{teamLink}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
<div className='nav-pills__container'>
|
<div className='nav-pills__container'>
|
||||||
<ul className='nav nav-pills nav-stacked'>
|
<ul className='nav nav-pills nav-stacked'>
|
||||||
<li><a href='#' data-toggle='modal' data-target='#user_settings1'><i className='glyphicon glyphicon-cog'></i>Account Settings</a></li>
|
<li><a href='#' data-toggle='modal' data-target='#user_settings'><i className='glyphicon glyphicon-cog'></i>Account Settings</a></li>
|
||||||
{teamSettingsLink}
|
{teamSettingsLink}
|
||||||
{inviteLink}
|
{inviteLink}
|
||||||
{teamLink}
|
{teamLink}
|
||||||
|
|||||||
@@ -105,11 +105,11 @@ var NotificationsTab = React.createClass({
|
|||||||
},
|
},
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
UserStore.addChangeListener(this._onChange);
|
UserStore.addChangeListener(this._onChange);
|
||||||
$('#user_settings1').on('hidden.bs.modal', this.handleClose);
|
$('#user_settings').on('hidden.bs.modal', this.handleClose);
|
||||||
},
|
},
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
UserStore.removeChangeListener(this._onChange);
|
UserStore.removeChangeListener(this._onChange);
|
||||||
$('#user_settings1').off('hidden.bs.modal', this.handleClose);
|
$('#user_settings').off('hidden.bs.modal', this.handleClose);
|
||||||
this.props.updateSection('');
|
this.props.updateSection('');
|
||||||
},
|
},
|
||||||
_onChange: function() {
|
_onChange: function() {
|
||||||
@@ -514,11 +514,11 @@ var SecurityTab = React.createClass({
|
|||||||
},
|
},
|
||||||
handleHistoryOpen: function() {
|
handleHistoryOpen: function() {
|
||||||
this.setState({willReturn: true});
|
this.setState({willReturn: true});
|
||||||
$("#user_settings1").modal('hide');
|
$("#user_settings").modal('hide');
|
||||||
},
|
},
|
||||||
handleDevicesOpen: function() {
|
handleDevicesOpen: function() {
|
||||||
this.setState({willReturn: true});
|
this.setState({willReturn: true});
|
||||||
$("#user_settings1").modal('hide');
|
$("#user_settings").modal('hide');
|
||||||
},
|
},
|
||||||
handleClose: function() {
|
handleClose: function() {
|
||||||
$(this.getDOMNode()).find('.form-control').each(function() {
|
$(this.getDOMNode()).find('.form-control').each(function() {
|
||||||
@@ -533,10 +533,10 @@ var SecurityTab = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
$('#user_settings1').on('hidden.bs.modal', this.handleClose);
|
$('#user_settings').on('hidden.bs.modal', this.handleClose);
|
||||||
},
|
},
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
$('#user_settings1').off('hidden.bs.modal', this.handleClose);
|
$('#user_settings').off('hidden.bs.modal', this.handleClose);
|
||||||
this.props.updateSection('');
|
this.props.updateSection('');
|
||||||
},
|
},
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
@@ -818,10 +818,10 @@ var GeneralTab = React.createClass({
|
|||||||
this.props.updateSection('');
|
this.props.updateSection('');
|
||||||
},
|
},
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
$('#user_settings1').on('hidden.bs.modal', this.handleClose);
|
$('#user_settings').on('hidden.bs.modal', this.handleClose);
|
||||||
},
|
},
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
$('#user_settings1').off('hidden.bs.modal', this.handleClose);
|
$('#user_settings').off('hidden.bs.modal', this.handleClose);
|
||||||
},
|
},
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
var user = this.props.user;
|
var user = this.props.user;
|
||||||
@@ -1100,7 +1100,7 @@ var AppearanceTab = React.createClass({
|
|||||||
if (this.props.activeSection === "theme") {
|
if (this.props.activeSection === "theme") {
|
||||||
$(this.refs[this.state.theme].getDOMNode()).addClass('active-border');
|
$(this.refs[this.state.theme].getDOMNode()).addClass('active-border');
|
||||||
}
|
}
|
||||||
$('#user_settings1').on('hidden.bs.modal', this.handleClose);
|
$('#user_settings').on('hidden.bs.modal', this.handleClose);
|
||||||
},
|
},
|
||||||
componentDidUpdate: function() {
|
componentDidUpdate: function() {
|
||||||
if (this.props.activeSection === "theme") {
|
if (this.props.activeSection === "theme") {
|
||||||
@@ -1109,7 +1109,7 @@ var AppearanceTab = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
$('#user_settings1').off('hidden.bs.modal', this.handleClose);
|
$('#user_settings').off('hidden.bs.modal', this.handleClose);
|
||||||
this.props.updateSection('');
|
this.props.updateSection('');
|
||||||
},
|
},
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ module.exports = React.createClass({
|
|||||||
tabs.push({name: "appearance", ui_name: "Appearance", icon: "glyphicon glyphicon-wrench"});
|
tabs.push({name: "appearance", ui_name: "Appearance", icon: "glyphicon glyphicon-wrench"});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="modal fade" ref="modal" id="user_settings1" role="dialog" tabIndex="-1" aria-hidden="true">
|
<div className="modal fade" ref="modal" id="user_settings" role="dialog" tabIndex="-1" aria-hidden="true">
|
||||||
<div className="modal-dialog settings-modal">
|
<div className="modal-dialog settings-modal">
|
||||||
<div className="modal-content">
|
<div className="modal-content">
|
||||||
<div className="modal-header">
|
<div className="modal-header">
|
||||||
@@ -64,4 +64,3 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -431,9 +431,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#user_settings {
|
|
||||||
border-right: none;
|
|
||||||
}
|
|
||||||
body {
|
body {
|
||||||
&.white {
|
&.white {
|
||||||
.inner__wrap {
|
.inner__wrap {
|
||||||
|
|||||||
@@ -143,12 +143,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#user_settings {
|
|
||||||
padding: 0 0.5em;
|
|
||||||
border-right: 1px solid #ddd;
|
|
||||||
max-width: 800px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.channel-settings {
|
.channel-settings {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user