forked from extern/egroupware
* Filemanager: fix not working upload in idots template
This commit is contained in:
parent
0380239cad
commit
61aa852df0
@ -71,9 +71,10 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
// call parent
|
// call parent
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
|
|
||||||
this.path_widget[et2.DOMContainer.id] = this.et2.getWidgetById('path') || null;
|
var path_widget = this.et2.getWidgetById('path');
|
||||||
if(this.path_widget[et2.DOMContainer.id])
|
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
|
// Bind to removal to remove from list
|
||||||
$j(et2.DOMContainer).on('clear', function(e) {
|
$j(et2.DOMContainer).on('clear', function(e) {
|
||||||
if (app.filemanager && app.filemanager.path_widget) delete app.filemanager.path_widget[e.target.id];
|
if (app.filemanager && app.filemanager.path_widget) delete app.filemanager.path_widget[e.target.id];
|
||||||
|
Loading…
Reference in New Issue
Block a user