mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 07:47:32 +00:00
[file view] don't request for unread notices's num
This commit is contained in:
parent
6be1172820
commit
79a21e0e6c
@ -20,7 +20,7 @@ $(function() {
|
||||
|
||||
var msg_ct = $("#msg-count");
|
||||
|
||||
// for login page
|
||||
// for login page, and pages without 'header' such as 'file view' page.
|
||||
if (msg_ct.length == 0) {
|
||||
return false;
|
||||
}
|
||||
|
@ -178,6 +178,10 @@
|
||||
<script type="text/javascript" src="{{ MEDIA_URL }}js/findAndReplaceDOMText.js"></script>
|
||||
{% endif %}
|
||||
<script type="text/javascript">
|
||||
// rm 'header', so request for unread notices' num won't be sent
|
||||
$('#header').remove();
|
||||
|
||||
// download
|
||||
$(function() {
|
||||
var dld_url = $('#download').data('url');
|
||||
$('#file-view-tip').append('<a href="' + dld_url + '" class="big-obv-btn">' + "{% trans "Download" %}" + '</a>');
|
||||
|
Loading…
Reference in New Issue
Block a user