LSformElement :: text : fixed bug breaking autoGenerateOnModify feature

This commit is contained in:
Benjamin Renard 2014-06-20 13:45:50 +02:00
parent 71417c1990
commit d45373222b

View file

@ -43,7 +43,7 @@ var LSformElement_text_field = new Class({
this.dependsFields = this.parent.getDependsFields(this.format); this.dependsFields = this.parent.getDependsFields(this.format);
this.dependsFields.each(function(el) { this.dependsFields.each(function(el) {
var inputs = varLSform.getInput.bind(this.parent)(el); var inputs = varLSform.getInput.bind(this.parent)(el);
if (inputs.lenght>0) { if (inputs.length>0) {
inputs.each(function(input) { inputs.each(function(input) {
input.addEvent('change',this.refreshValue.bind(this)); input.addEvent('change',this.refreshValue.bind(this));
},this); },this);