Allow file remove and upload on Android.
Ylian Saint-Hilaire committed
Jan 29, 2021 at 14:32 UTC
e72676ade255d9053f77d7ca58006f43cffa567f
1 file changed
+5
-5
views/default.handlebars
+5
-5
@@ -8531,10 +8531,10 @@
8531
QE('p13PasteButton', false);
8532
} else {
8533
var cc = p13getFileSelCount(), tc = p13getFileCount(), sfc = p13getFileSelCount(false); // In order: number of entires selected, number of total entries, number of selected entires that are files (not folders)
8534
- var winAgent = ((currentNode.agent.id > 0) && (currentNode.agent.id < 5));
8535
- QE('p13DeleteFileButton', advancedFeatures && (cc > 0) && ((p13filetreelocation.length > 0) || (winAgent == false)));
8534
+ var winAgent = ((currentNode.agent.id > 0) && (currentNode.agent.id < 5)) || (currentNode.agent.id == 14);
8535
+ QE('p13DeleteFileButton', (cc > 0) && ((p13filetreelocation.length > 0) || (winAgent == false)));
8536
QE('p13NewFolderButton', advancedFeatures && ((p13filetreelocation.length > 0) || (winAgent == false)));
8537
- QE('p13UploadButton', advancedFeatures && ((p13filetreelocation.length > 0) || (winAgent == false)));
8537
+ QE('p13UploadButton', ((p13filetreelocation.length > 0) || (winAgent == false) || (currentNode.agent.id == 14)));
8538
QE('p13RenameFileButton', advancedFeatures && (cc == 1) && ((p13filetreelocation.length > 0) || (winAgent == false)));
8539
QE('p13ViewFileButton', advancedFeatures && (cc == 1) && (sfc == 1) && ((p13filetreelocation.length > 0) || (winAgent == false)));
8540
QE('p13SelectAllButton', tc > 0);
@@ -8628,7 +8628,7 @@
8628
haltEvent(e);
8629
QV('p13bigfail', false);
8630
QV('p13bigok', false);
8631
- if ((e.dataTransfer == null) || (e.dataTransfer.files.length == 0) || (p13filetree == null) || (currentNode.agent.id == 14)) return;
8631
+ if ((e.dataTransfer == null) || (e.dataTransfer.files.length == 0) || (p13filetree == null)) return;
8632
8633
// Check if these are files we can upload, remove all folders.
8634
var files = [];
@@ -8642,7 +8642,7 @@
8642
function p13fileDragOver(e) {
8643
haltEvent(e);
8644
if (p13dragtimer != null) { clearTimeout(p13dragtimer); p13dragtimer = null; }
8645
- var ac = (p13filetree != null) && (currentNode.agent.id != 14); // Set to true if we can accept the file
8645
+ var ac = (p13filetree != null); // Set to true if we can accept the file
8646
QV('p13bigok', ac);
8647
QV('p13bigfail', !ac);
8648
}