mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 00:39:19 +01:00
Use a two step process to force an absolute URL, in case server settings have full URL
This commit is contained in:
parent
85f4585abf
commit
6fd5e50d60
@ -153,7 +153,12 @@ function egwDragActionImplementation()
|
|||||||
if(data && data.data.mime && data.data.download_url)
|
if(data && data.data.mime && data.data.download_url)
|
||||||
{
|
{
|
||||||
var url = data.data.download_url;
|
var url = data.data.download_url;
|
||||||
if (url[0] == '/') url = window.location.origin+egw.link(url);
|
|
||||||
|
// NEED an absolute URL
|
||||||
|
if (url[0] == '/') url = egw.link(url);
|
||||||
|
// egw.link adds the webserver, but that might not be an absolute URL - try again
|
||||||
|
if (url[0] == '/') url = window.location.origin+url;
|
||||||
|
|
||||||
// Unfortunately, dragging files is currently only supported by Chrome
|
// Unfortunately, dragging files is currently only supported by Chrome
|
||||||
if(navigator && navigator.userAgent.indexOf('Chrome'))
|
if(navigator && navigator.userAgent.indexOf('Chrome'))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user