@@ -67,7 +67,7 @@ var PopoverListMembers = React.createClass({
|
||||
|
||||
return (
|
||||
<div id='member_popover' data-toggle='popover' data-content={popoverHtml} data-original-title='Members' >
|
||||
<div id='member_tooltip' data-toggle='tooltip' title='View Channel Members'>
|
||||
<div id='member_tooltip' data-placement='left' data-toggle='tooltip' title='View Channel Members'>
|
||||
{count} <span className='glyphicon glyphicon-user' aria-hidden='true'></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,6 +20,12 @@ module.exports = React.createClass({
|
||||
PostStore.addMentionDataChangeListener(this.onListenerChange);
|
||||
var self = this;
|
||||
|
||||
$('.post-right__scroll').scroll(function(){
|
||||
if($('.mentions--top').length){
|
||||
$('#reply_mention_tab .mentions--top').css({ bottom: $(window).height() - $('.post-right__scroll #reply_textbox').offset().top });
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('keydown.mentionlist', '#' + this.props.id,
|
||||
function(e) {
|
||||
if (!self.isEmpty() && self.state.mentionText !== '-1' && (e.which === 13 || e.which === 9)) {
|
||||
|
||||
@@ -37,15 +37,23 @@ module.exports = React.createClass({
|
||||
componentDidMount: function() {
|
||||
var user = UserStore.getCurrentUser();
|
||||
if (user.props && user.props.theme) {
|
||||
utils.changeCss('a.theme', 'color:'+user.props.theme+'; fill:'+user.props.theme+'!important;');
|
||||
utils.changeCss('div.theme', 'background-color:'+user.props.theme+';');
|
||||
utils.changeCss('.btn.btn-primary', 'background: ' + user.props.theme+';');
|
||||
utils.changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background: ' + utils.changeColor(user.props.theme, -10) +';');
|
||||
utils.changeCss('.modal .modal-header', 'background: ' + user.props.theme+';');
|
||||
utils.changeCss('.mention', 'background: ' + user.props.theme+';');
|
||||
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
|
||||
utils.changeCss('@media(max-width: 768px){.search-bar__container', 'background: ' + user.props.theme+';}');
|
||||
}
|
||||
if (user.props.theme != '#000000' && user.props.theme != '#585858') {
|
||||
utils.changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background: ' + utils.changeColor(user.props.theme, -10) +';');
|
||||
utils.changeCss('a.theme', 'color:'+user.props.theme+'; fill:'+user.props.theme+'!important;');
|
||||
} else if (user.props.theme == '#000000') {
|
||||
utils.changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background: ' + utils.changeColor(user.props.theme, +50) +';');
|
||||
$('.team__header').addClass('theme--black');
|
||||
} else if (user.props.theme == '#585858') {
|
||||
utils.changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background: ' + utils.changeColor(user.props.theme, +10) +';');
|
||||
$('.team__header').addClass('theme--gray');
|
||||
}
|
||||
|
||||
PostStore.addChangeListener(this._onChange);
|
||||
ChannelStore.addChangeListener(this._onChange);
|
||||
|
||||
@@ -28,6 +28,7 @@ module.exports = React.createClass({
|
||||
componentDidMount: function() {
|
||||
UserStore.addChangeListener(this._onChange);
|
||||
$("#profile_" + this.uniqueId).popover({placement : 'right', container: 'body', trigger: 'hover', html: true, delay: { "show": 200, "hide": 100 }});
|
||||
$('body').tooltip( {selector: '[data-toggle=tooltip]', trigger: 'hover click'} );
|
||||
},
|
||||
componentWillUnmount: function() {
|
||||
UserStore.removeChangeListener(this._onChange);
|
||||
@@ -57,7 +58,7 @@ module.exports = React.createClass({
|
||||
if (!config.ShowEmail) {
|
||||
data_content += "<div class='text-nowrap'>Email not shared</div>";
|
||||
} else {
|
||||
data_content += "<div><a href='mailto:" + this.state.profile.email + "' class='text-nowrap text-lowercase'>" + this.state.profile.email + "</a></div>";
|
||||
data_content += "<div data-toggle='tooltip' title= '" + this.state.profile.email + "'><a href='mailto:" + this.state.profile.email + "' class='text-nowrap text-lowercase user-popover__email'>" + this.state.profile.email + "</a></div>";
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Ссылка в новой задаче
Block a user