mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:25:22 +01:00
Got JS handlers working again
This commit is contained in:
parent
c4293ba3bc
commit
0fdf434321
@ -145,11 +145,16 @@ function et2_checkType(_val, _type, _attr)
|
||||
if (_type == "js")
|
||||
{
|
||||
// Handle the default case
|
||||
if (_val === null || _val instanceof Function)
|
||||
if (_val === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (_val instanceof Function)
|
||||
{
|
||||
return _val;
|
||||
}
|
||||
|
||||
// Create a new function containing the code
|
||||
if (typeof _val == "string")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user