From d45373222b9355ef7f36e60be29c832d26b00a5f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 20 Jun 2014 13:45:50 +0200 Subject: [PATCH] LSformElement :: text : fixed bug breaking autoGenerateOnModify feature --- public_html/includes/js/LSformElement_text_field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/js/LSformElement_text_field.js b/public_html/includes/js/LSformElement_text_field.js index 49e15285..cbd134b7 100644 --- a/public_html/includes/js/LSformElement_text_field.js +++ b/public_html/includes/js/LSformElement_text_field.js @@ -43,7 +43,7 @@ var LSformElement_text_field = new Class({ this.dependsFields = this.parent.getDependsFields(this.format); this.dependsFields.each(function(el) { var inputs = varLSform.getInput.bind(this.parent)(el); - if (inputs.lenght>0) { + if (inputs.length>0) { inputs.each(function(input) { input.addEvent('change',this.refreshValue.bind(this)); },this);