mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Changed javascript to CSS method
This commit is contained in:
@@ -30,9 +30,7 @@ module.exports = React.createClass({
|
||||
<div className="dropdown">
|
||||
{ isOwner || (this.props.allowReply === "true" && type != "Comment") ?
|
||||
<div>
|
||||
<a href="#" className="dropdown-toggle theme" type="button" data-toggle="dropdown" aria-expanded="false">
|
||||
[...]
|
||||
</a>
|
||||
<a href="#" className="dropdown-toggle theme" type="button" data-toggle="dropdown" aria-expanded="false" />
|
||||
<ul className="dropdown-menu" role="menu">
|
||||
{ isOwner ? <li role="presentation"><a href="#" role="menuitem" data-toggle="modal" data-target="#edit_post" data-title={type} data-message={post.message} data-postid={post.id} data-channelid={post.channel_id} data-comments={type === "Post" ? this.props.commentCount : 0}>Edit</a></li>
|
||||
: "" }
|
||||
|
||||
@@ -129,9 +129,7 @@ RootPost = React.createClass({
|
||||
<div className="dropdown">
|
||||
{ isOwner ?
|
||||
<div>
|
||||
<a href="#" className="dropdown-toggle theme" type="button" data-toggle="dropdown" aria-expanded="false">
|
||||
[...]
|
||||
</a>
|
||||
<a href="#" className="dropdown-toggle theme" type="button" data-toggle="dropdown" aria-expanded="false" />
|
||||
<ul className="dropdown-menu" role="menu">
|
||||
<li role="presentation"><a href="#" role="menuitem" data-toggle="modal" data-target="#edit_post" data-title={type} data-message={this.props.post.message} data-postid={this.props.post.id} data-channelid={this.props.post.channel_id}>Edit</a></li>
|
||||
<li role="presentation"><a href="#" role="menuitem" data-toggle="modal" data-target="#delete_post" data-title={type} data-postid={this.props.post.id} data-channelid={this.props.post.channel_id} data-comments={this.props.commentCount}>Delete</a></li>
|
||||
|
||||
@@ -208,6 +208,12 @@ body.ios {
|
||||
.dropdown, .comment-icon__container {
|
||||
@include opacity(1);
|
||||
}
|
||||
.dropdown-toggle:after {
|
||||
content: '...';
|
||||
}
|
||||
.dropdown-toggle:hover:after {
|
||||
content: '[...]';
|
||||
}
|
||||
}
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user