Attempt of fixing legacy JavaScript functions, only tested for simple cases

This commit is contained in:
Andreas Stöckel
2012-03-06 15:26:11 +00:00
parent d996537c35
commit e4ed4399cf
8 changed files with 151 additions and 143 deletions

View File

@@ -41,7 +41,7 @@ var et2_inputWidget = et2_valueWidget.extend(et2_IInput, {
},
"onchange": {
"name": "onchange",
"type": "js",
"type": "string",
"description": "JS code which is executed when the value changes."
},
"validation_error": {
@@ -113,7 +113,7 @@ var et2_inputWidget = et2_valueWidget.extend(et2_IInput, {
change: function(_node) {
if (this.onchange)
{
return this.onchange.apply(_node);
return this.onchange(_node);
}
},