* Filemanager: fix drag and drop a file no longer working from outside of browser into the list

This commit is contained in:
Hadi Nategh 2020-10-19 12:54:16 +02:00
parent e0d04b09c5
commit 644feaffa4
3 changed files with 6 additions and 1 deletions

View File

@ -146,6 +146,9 @@ var et2_file = /** @class */ (function (_super) {
this.input.attr("multiple", "multiple");
}
this.setDOMNode(this.node[0]);
// set drop target to widget dom node if no target option is specified
if (!this.options.drop_target)
this.resumable.assignDrop([this.getDOMNode()]);
};
/**
* Get any specific async upload options

View File

@ -237,6 +237,8 @@ export class et2_file extends et2_inputWidget
}
this.setDOMNode(this.node[0]);
// set drop target to widget dom node if no target option is specified
if (!this.options.drop_target) this.resumable.assignDrop([this.getDOMNode()]);
}
/**

View File

@ -45,7 +45,7 @@
</grid>
</template>
<template id="filemanager.index.header_left" template="" lang="" group="0" version="1.9.002">
<file label="Upload" statustext="Select file to upload in current directory" id="upload" progress_dropdownlist = "true" drop_target ="divAppbox" multiple="true" onFinishOne="app.filemanager.uploadOnOne"/>
<file label="Upload" statustext="Select file to upload in current directory" id="upload" progress_dropdownlist = "true" drop_target="filemanager-index" multiple="true" onFinishOne="app.filemanager.uploadOnOne"/>
</template>
<template id="filemanager.index.header_row" template="" lang="" group="0" version="1.9.002">
<buttononly id="home" statustext="Go to your home directory" image="gohome" background_image="true" onclick="app.filemanager.change_dir('~',widget);"/>