mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix drag & drop files to nextmatch
This commit is contained in:
parent
de64622b99
commit
365cdf2dd5
@ -539,12 +539,13 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
* This is a callback from nextmatch to prevent the default link action, and just upload instead.
|
* This is a callback from nextmatch to prevent the default link action, and just upload instead.
|
||||||
*
|
*
|
||||||
* @param {string} row_uid UID of the row the files were dropped on
|
* @param {string} row_uid UID of the row the files were dropped on
|
||||||
* @param {File[]} Array of Files
|
* @param {et2_nextmatch} widget widget that got the drop
|
||||||
*/
|
*/
|
||||||
filedrop: function(row_uid, files)
|
filedrop: function(row_uid, widget ,files)
|
||||||
{
|
{
|
||||||
var self = this;
|
var self = this;
|
||||||
var data = egw.dataGetUIDdata(row_uid);
|
var data = egw.dataGetUIDdata(row_uid);
|
||||||
|
files = files || window.event.dataTransfer.files;
|
||||||
|
|
||||||
var path = data.data.mime == "httpd/unix-directory" ? data.data.path : this.get_path();
|
var path = data.data.mime == "httpd/unix-directory" ? data.data.path : this.get_path();
|
||||||
var widget = this.et2.getWidgetById('upload');
|
var widget = this.et2.getWidgetById('upload');
|
||||||
|
Loading…
Reference in New Issue
Block a user