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