Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerlembke committed Aug 27, 2023
1 parent 3129352 commit 6eb2e6a
Show file tree
Hide file tree
Showing 10 changed files with 1,073 additions and 895 deletions.
11 changes: 9 additions & 2 deletions filemanager/fm.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,23 @@ div {

.u2 {
grid-area: u2;
cursor: pointer;
background-color: #CC6666;
margin-top: 0px;
padding-left: 10px;
vertical-align: middle;
font-size: 80%;
}

.u2:hover {
.u2 .s1, .u2 .s2 {
cursor: pointer;
height: 100%;
padding: 0 2px 0 2px;
display: inline-block;
}

.u2 .s1:hover, .u2 .s2:hover {
background-color: #9999FF;
border-radius: 2px;
color: white;
}

Expand Down
2 changes: 1 addition & 1 deletion filemanager/fm.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>

<div class="u1">&nbsp;</div>
<div class="u2" onclick="downloadall();">Download all files</div>
<div class="u2">Download&nbsp;<span class="s1" onclick="downloadall(1);">all files</span>&nbsp;<span class="s2" onclick="downloadall(0);">this folder</span></div>
<div class="u3" id="msg">Loading...</div>
<div class="u4">&nbsp;</div>
<div class="c" id="ca">
Expand Down
10 changes: 7 additions & 3 deletions filemanager/fm.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,13 @@ function msgline(msg) {
}

//000000000000000000000000000
function downloadall() {
msgline("Sending all files in one zip.");
window.location.href = "/c?za=all";
function downloadall(param) {
if (param==0) {
msgline("Sending this folder in one zip file.");
} else {
msgline("Sending all files in one zip file.");
}
window.location.href = "/job?fs=" + getFileSystemIndex() + "&job=dwnldll&fn=dummy&folder=" + foldername;
msgline("");
}

Expand Down
Loading

0 comments on commit 6eb2e6a

Please sign in to comment.