mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[notice] make msg details be clickable
This commit is contained in:
@@ -74,6 +74,10 @@ $(function() {
|
|||||||
dataType:'json'
|
dataType:'json'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.detail', notice_list).click(function() {
|
||||||
|
location.href = $('a', $(this).prev()).attr('href'); // <a> in '.brief'
|
||||||
|
});
|
||||||
},
|
},
|
||||||
error: function (xhr, textStatus, errorThrown) {
|
error: function (xhr, textStatus, errorThrown) {
|
||||||
if (xhr.responseText) {
|
if (xhr.responseText) {
|
||||||
|
@@ -16,17 +16,17 @@
|
|||||||
{% if notice.is_group_msg %}
|
{% if notice.is_group_msg %}
|
||||||
<p class="brief">{{ notice.format_group_message_title|safe }}</p>
|
<p class="brief">{{ notice.format_group_message_title|safe }}</p>
|
||||||
{% if notice.format_group_message_detail %}
|
{% if notice.format_group_message_detail %}
|
||||||
<p class="clear detail">{{ notice.format_group_message_detail }}</p>
|
<p class="clear cspt detail">{{ notice.format_group_message_detail }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif notice.is_grpmsg_reply %}
|
{% elif notice.is_grpmsg_reply %}
|
||||||
<p class="brief">{{ notice.format_grpmsg_reply_title|safe }}</p>
|
<p class="brief">{{ notice.format_grpmsg_reply_title|safe }}</p>
|
||||||
{% if notice.format_grpmsg_reply_detail %}
|
{% if notice.format_grpmsg_reply_detail %}
|
||||||
<p class="clear detail">{{ notice.format_grpmsg_reply_detail }}</p>
|
<p class="clear cspt detail">{{ notice.format_grpmsg_reply_detail }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif notice.is_user_message %}
|
{% elif notice.is_user_message %}
|
||||||
<p class="brief">{{ notice.format_user_message_title|safe }}</p>
|
<p class="brief">{{ notice.format_user_message_title|safe }}</p>
|
||||||
{% if notice.format_user_message_detail %}
|
{% if notice.format_user_message_detail %}
|
||||||
<p class="clear detail">{{ notice.format_user_message_detail }}</p>
|
<p class="clear cspt detail">{{ notice.format_user_message_detail }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% elif notice.is_file_uploaded_msg %}
|
{% elif notice.is_file_uploaded_msg %}
|
||||||
|
Reference in New Issue
Block a user