mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Add more hints for file drag out
This commit is contained in:
parent
26e52d6692
commit
1d7d73e8e7
@ -145,7 +145,14 @@ export function egwDragActionImplementation()
|
||||
if('draggable' in document.createElement('span') &&
|
||||
navigator && navigator.userAgent.indexOf('Chrome') >= 0 && egw.app_name() == 'filemanager') // currently only filemanager supports drag out
|
||||
{
|
||||
text.text(egw.lang('You may drag files out to your desktop', itemLabel));
|
||||
if (rows.length == 1)
|
||||
{
|
||||
text.text(egw.lang('You may darg file out to your desktop', itemLabel));
|
||||
}
|
||||
else
|
||||
{
|
||||
text.text(egw.lang('Note: If you drag out these selected rows to desktop only the first selected row will be downloaded.', itemLabel));
|
||||
}
|
||||
}
|
||||
// Final html DOM return as helper structor
|
||||
return div;
|
||||
@ -231,7 +238,7 @@ export function egwDragActionImplementation()
|
||||
var selected = ai.selected;
|
||||
|
||||
// Set file data
|
||||
for (let i = 0; i < selected.length; i++) {
|
||||
for (let i = 0; i < 1; i++) {
|
||||
let d = selected[i].data || egw.dataGetUIDdata(selected[i].id).data || {};
|
||||
if (d && d.mime && d.download_url) {
|
||||
var url = d.download_url;
|
||||
|
Loading…
Reference in New Issue
Block a user