Fix dropping file onto a sub-directory uploaded into current directory instead

This commit is contained in:
Nathan Gray 2015-02-23 17:48:09 +00:00
parent 0661e8fd4a
commit b7d00df071

View File

@ -822,10 +822,10 @@ app.classes.filemanager = AppJS.extend(
var widget = this.et2.getWidgetById('upload'); var widget = this.et2.getWidgetById('upload');
// Override finish to specify a potentially different path // 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.onFinishOne = function(_event, _file_count) {
widget.options.onFinish = old_onfinish; widget.options.onFinishOne = old_onfinish;
self.upload(_event, _file_count, path); self.upload(_event, _file_count, path);
}; };
// This triggers the upload // This triggers the upload