1
0
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:
zhengxie
2016-12-26 14:22:35 +08:00
39 changed files with 520 additions and 127 deletions

View File

@@ -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() {