mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +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
|
||||
}];
|
||||
// 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user