mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
not giving an error for undefined href / download-url
This commit is contained in:
parent
335d099bfd
commit
cdd8b29fa7
@ -332,7 +332,7 @@ var et2_vfsMime = expose(et2_valueWidget.extend([et2_IDetachedDOM],
|
|||||||
href: _value.download_url
|
href: _value.download_url
|
||||||
}];
|
}];
|
||||||
// check if download_url is not already an url (some stream-wrappers allow to specify that!)
|
// check if download_url is not already an url (some stream-wrappers allow to specify that!)
|
||||||
if (_value.download_url[0] == '/' || _value.download_url.substr(0, 4) != 'http')
|
if (_value.download_url && (_value.download_url[0] == '/' || _value.download_url.substr(0, 4) != 'http'))
|
||||||
{
|
{
|
||||||
mediaContent[0].href = base_url + _value.download_url;
|
mediaContent[0].href = base_url + _value.download_url;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user