From 105bfc8f8f01d1512a21db89953998fde9775900 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 23 Feb 2015 17:42:21 +0000 Subject: [PATCH] Fix dropping file onto a sub-directory uploaded into current directory instead --- filemanager/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index 913ab70d3e..3a96760661 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -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