mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Do not bind the expose view click handler if the media type is not supported
This commit is contained in:
parent
fc5d0cab49
commit
4eb63d65ec
@ -185,6 +185,11 @@ function expose (widget)
|
||||
{
|
||||
this._super.apply(this,arguments)
|
||||
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(/^(video|image|audio|media)\//,'ig'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (typeof this.options.expose_view != 'undefined' && this.options.expose_view )
|
||||
{
|
||||
jQuery(this.node).on('click', function(){
|
||||
|
Loading…
Reference in New Issue
Block a user