mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
Change media logic to also support mime=false
This commit is contained in:
parent
5281afe124
commit
64b4ca3b5a
@ -381,7 +381,7 @@ function expose (widget)
|
||||
|
||||
var self=this;
|
||||
// If the media type is not supported do not bind the click handler
|
||||
if (_value && typeof _value.mime != 'undefined' && !_value.mime.match(mime_regex,'ig'))
|
||||
if (!_value || typeof _value.mime != 'string' || !_value.mime.match(mime_regex,'ig'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user