mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-19 05:01:12 +01:00
Fix dropping file onto a sub-directory uploaded into current directory instead
This commit is contained in:
parent
0661e8fd4a
commit
b7d00df071
@ -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