1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

repair menu bug for floder bug (#2335)

This commit is contained in:
shanshuirenjia 2018-09-04 16:19:56 +08:00 committed by Daniel Pan
parent d5017f7901
commit b8662376a1
2 changed files with 5 additions and 4 deletions

View File

@ -653,9 +653,10 @@
</td>
<td class="dirent-op">
<div class="op-container">
<div class="sf-dropdown sf-dropdown-inline">
<a href="#" class="more-op-icon sf2-icon-caret-down op-icon sf-dropdown-toggle" title="{% trans "More Operations" %}" aria-label="{% trans "More Operations" %}"></a>
<div class="hide sf-dropdown-menu">
<a href="#" class="mobile-menu-control more-op-icon sf2-icon-caret-down op-icon sf-dropdown-toggle" title="{% trans "More Operations" %}" aria-label="{% trans "More Operations" %}"></a>
<div class="mobile-menu-container" style="display:none">
<div class="mobile-menu-mask"></div>
<div class="mobile-menu-content">
<ul>
<li><a class="op download download-dir" href="#">{% trans "Download" %}</a></li>
<% if (!repo_encrypted && (can_generate_share_link || can_generate_upload_link || is_repo_owner || is_admin)) { %>
@ -673,7 +674,6 @@
<% } %>
<% } %>
</ul>
<div class="menu-inner-divider"></div>
<ul>
<% if (dirent.perm == 'rw') { %>
<% if (can_set_folder_perm) { %>

View File

@ -305,6 +305,7 @@ define([
},
downloadDir: function() {
this.hideMobileMenu();
var dir = this.dirView.dir;
var obj_name = this.model.get('obj_name');
Common.zipDownload(dir.repo_id, dir.path, obj_name);