mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 15:19:06 +00:00
Merge branch '6.0'
Conflicts: media/css/seahub.css
This commit is contained in:
@@ -128,13 +128,16 @@ define([
|
||||
data.files.shift();
|
||||
return;
|
||||
}
|
||||
if (file.webkitRelativePath) {
|
||||
file.relative_path = file.webkitRelativePath;
|
||||
}
|
||||
|
||||
// add folder by drag & drop
|
||||
if (file.relativePath) {
|
||||
file.relative_path = file.relativePath + file.name;
|
||||
// set 'file.relative_path' when upload a folder
|
||||
if (data.fileInput) { // clicking
|
||||
if (file.webkitRelativePath) {
|
||||
file.relative_path = file.webkitRelativePath;
|
||||
}
|
||||
} else { // drag & drop
|
||||
if (file.relativePath) {
|
||||
file.relative_path = file.relativePath + file.name;
|
||||
}
|
||||
}
|
||||
})
|
||||
.bind('fileuploadstart', function() {
|
||||
|
Reference in New Issue
Block a user