mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 08:49:00 +01:00
Fix error apply is not available from the this._super in expose view
This commit is contained in:
parent
2fbc91c5d9
commit
262c92558e
@ -183,7 +183,15 @@ function expose (widget)
|
|||||||
|
|
||||||
set_value:function (_value)
|
set_value:function (_value)
|
||||||
{
|
{
|
||||||
this._super.apply(this,arguments)
|
// Do not run set value of expose if expose_view is not set
|
||||||
|
// it causes a wired error on nested image widgets which
|
||||||
|
// seems the expose is not its child widget
|
||||||
|
if (!this.options.expose_view )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._super.apply(this,arguments);
|
||||||
|
|
||||||
var self=this;
|
var self=this;
|
||||||
// If the media type is not supported do not bind the click handler
|
// 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'))
|
if (_value && typeof _value.mime != 'undefined' && !_value.mime.match(/^(video|image|audio|media)\//,'ig'))
|
||||||
|
Loading…
Reference in New Issue
Block a user