1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

[dir view] fileupload: added support for IE9

This commit is contained in:
llj
2018-09-07 15:13:58 +08:00
parent eab6c6fe61
commit 94368c5af9
4 changed files with 24 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
define([
'common',
'backbone',
'jquery.iframe-transport', // for IE 9
'jquery.fileupload-ui'
], function(Common, Backbone, FileUpload) {
@@ -342,7 +343,8 @@ define([
}
var path = dirents.path;
path = path == '/' ? path : path + '/';
if (data.formData.parent_dir != path) {
var parent_dir = popup.fileupload('option','formData').parent_dir;
if (parent_dir != path) {
return;
}
if (!file_path) {
@@ -479,7 +481,7 @@ define([
popup.fileupload(
'option',
'redirect',
window.location.href.replace(/\/repo\/[-a-z0-9]{36}\/.*/, app.config.mediaUrl + 'cors/result.html?%s')
location.protocol + '//' + location.host + app.config.mediaUrl + 'cors/result.html?%s'
);
},