From 61aa852df041207fad32ea231788a5377f9fa37c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 2 Feb 2016 10:42:21 +0000 Subject: [PATCH] * Filemanager: fix not working upload in idots template --- filemanager/js/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index d38433b019..98e011cdae 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -71,9 +71,10 @@ app.classes.filemanager = AppJS.extend( // call parent this._super.apply(this, arguments); - this.path_widget[et2.DOMContainer.id] = this.et2.getWidgetById('path') || null; - if(this.path_widget[et2.DOMContainer.id]) + var path_widget = this.et2.getWidgetById('path'); + if(path_widget) // do NOT set not found path-widgets, as uploads works on first one only! { + this.path_widget[et2.DOMContainer.id] = path_widget; // Bind to removal to remove from list $j(et2.DOMContainer).on('clear', function(e) { if (app.filemanager && app.filemanager.path_widget) delete app.filemanager.path_widget[e.target.id];