mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
[pdf file view] fixup for download (#2818)
This commit is contained in:
@@ -163,7 +163,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if can_download_file %}
|
{% if can_download_file %}
|
||||||
<a class="sf-btn-group-btn sf-btn-link op-icon sf2-icon-download" href="?dl=1" id="download" title="{% trans "Download"%}"></a>
|
<a class="sf-btn-group-btn sf-btn-link op-icon sf2-icon-download" href="?dl=1" id="download-file" title="{% trans "Download"%}"></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_file_comment %}
|
{% if enable_file_comment %}
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
|
|
||||||
{% if can_download_file %}
|
{% if can_download_file %}
|
||||||
<li>
|
<li>
|
||||||
<a id="download" class="op download" href="?dl=1" title="{% trans "Download"%}">{% trans "Download"%}</a>
|
<a id="download-file" class="op download" href="?dl=1" title="{% trans "Download"%}">{% trans "Download"%}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -610,7 +610,7 @@ var DropDownMenu = {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
$("#download").on("click", function(){
|
$("#download-file").on("click", function(){
|
||||||
_this.clickToClosePopMenu();
|
_this.clickToClosePopMenu();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user