mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix dropping file onto a sub-directory uploaded into current directory instead
This commit is contained in:
parent
131b19fc32
commit
105bfc8f8f
@ -822,10 +822,10 @@ app.classes.filemanager = AppJS.extend(
|
||||
var widget = this.et2.getWidgetById('upload');
|
||||
|
||||
// Override finish to specify a potentially different path
|
||||
var old_onfinish = widget.options.onFinish;
|
||||
var old_onfinish = widget.options.onFinishOne;
|
||||
|
||||
widget.options.onFinish = function(_event, _file_count) {
|
||||
widget.options.onFinish = old_onfinish;
|
||||
widget.options.onFinishOne = function(_event, _file_count) {
|
||||
widget.options.onFinishOne = old_onfinish;
|
||||
self.upload(_event, _file_count, path);
|
||||
};
|
||||
// This triggers the upload
|
||||
|
Loading…
Reference in New Issue
Block a user