mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 15:26:19 +00:00
Modify msg delete button
This commit is contained in:
@@ -125,7 +125,6 @@
|
|||||||
<div class="msg-hd">
|
<div class="msg-hd">
|
||||||
<span class="time">{{ msg.timestamp|translate_commit_time }}</span>
|
<span class="time">{{ msg.timestamp|translate_commit_time }}</span>
|
||||||
<a href="{{ SITE_ROOT }}profile/{{ msg.from_email }}/" title="{{ msg.from_email }}">{{ msg.from_email|email2nickname }}</a>
|
<a href="{{ SITE_ROOT }}profile/{{ msg.from_email }}/" title="{{ msg.from_email }}">{{ msg.from_email|email2nickname }}</a>
|
||||||
<a class="msg-delete" href="#" data="{% url 'group_message_remove' group.id msg.id %}">删除</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="msg-bd">
|
<div class="msg-bd">
|
||||||
<p>
|
<p>
|
||||||
@@ -150,6 +149,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<button class="reply op" data="{% url 'msg_reply' msg.id %}"><span class="reply-cnt">{% if msg.reply_cnt != 0 %}{{ msg.reply_cnt }} {% endif %}</span>回复</button>
|
<button class="reply op" data="{% url 'msg_reply' msg.id %}"><span class="reply-cnt">{% if msg.reply_cnt != 0 %}{{ msg.reply_cnt }} {% endif %}</span>回复</button>
|
||||||
<button class="replyclose op hide">收起回复</button>
|
<button class="replyclose op hide">收起回复</button>
|
||||||
|
<button class="msg-delete op" href="#" data="{% url 'group_message_remove' group.id msg.id %}">删除</button>
|
||||||
<div class="reply-bd"></div>
|
<div class="reply-bd"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -71,7 +71,7 @@ $('.reply').click(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.replyclose').click(function() {
|
$('.replyclose').click(function() {
|
||||||
$(this).next().addClass('hide'); // hide 'reply-bd'
|
$(this).next().next().addClass('hide'); // hide 'reply-bd'
|
||||||
$(this).addClass('hide');
|
$(this).addClass('hide');
|
||||||
$(this).prev().removeClass('hide'); // show 'reply'
|
$(this).prev().removeClass('hide'); // show 'reply'
|
||||||
});
|
});
|
||||||
|
@@ -1136,9 +1136,6 @@ ul.with-bg li {
|
|||||||
.msg-hd .group {
|
.msg-hd .group {
|
||||||
margin-left:30px;
|
margin-left:30px;
|
||||||
}
|
}
|
||||||
.msg-hd .msg-delete {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.msg-bd a {
|
.msg-bd a {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user