LSformElement :: text : fixed bug breaking autoGenerateOnModify feature
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 20 Jun 2014 11:45:50 +0000 (13:45 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 20 Jun 2014 11:45:50 +0000 (13:45 +0200)
public_html/includes/js/LSformElement_text_field.js

index 49e1528..cbd134b 100644 (file)
@@ -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);