app/assets/javascripts/bhf/classes/MultipleFields.js in bhf-0.10.12 vs app/assets/javascripts/bhf/classes/MultipleFields.js in bhf-0.10.13
- old
+ new
@@ -29,11 +29,11 @@
elem.get('value').toString().split(this.options.spliter).each(function(data){
this.addField(elem, template, data);
}.bind(this));
},
-
+
addField: function(elem, template, data){
template
.clone()
.set('value', data)
.addEvent('change', function(e){
@@ -45,6 +45,6 @@
});
elem.set('value', values.join(this.options.spliter));
}.bind(this))
.inject(elem.getParent('.input').getElement('.plus_button'), 'before');
}
-});
\ No newline at end of file
+});