forked from extern/egroupware
Get legacy JS parser to understand functions that don't start with "app." and don't have brackets in the attribute.
This covers widget or other non-app static functions (eg: et2_avatar.uploadAvatar_onFinish)
This commit is contained in:
@@ -665,14 +665,10 @@ export class et2_file extends et2_inputWidget
|
||||
event.data = this;
|
||||
|
||||
// Callback
|
||||
if(typeof this.onFinishOne == 'function' && !this.options.onFinishOne)
|
||||
if(typeof this.onFinishOne == 'function')
|
||||
{
|
||||
this.onFinishOne(event, response, name);
|
||||
}
|
||||
else if (this.options.onFinishOne)
|
||||
{
|
||||
et2_call(this.options.onFinishOne,event,response,name);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user