mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
If onclick is still text, compile it
This commit is contained in:
parent
7d0a964a1e
commit
b4271fdcbd
@ -235,7 +235,12 @@ var et2_baseWidget = et2_DOMWidget.extend(et2_IAligned, {
|
||||
click: function(_node) {
|
||||
if (this.onclick)
|
||||
{
|
||||
return this.onclick(_node);
|
||||
if(typeof this.onclick == 'function')
|
||||
{
|
||||
return this.onclick(_node);
|
||||
} else {
|
||||
return (et2_compileLegacyJS(this.options.onclick, this, _node))();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user