diff --git a/src/includes/js/LSformElement_supannCompositeAttribute_field_value.js b/src/includes/js/LSformElement_supannCompositeAttribute_field_value.js index 36651043..6dc91aec 100644 --- a/src/includes/js/LSformElement_supannCompositeAttribute_field_value.js +++ b/src/includes/js/LSformElement_supannCompositeAttribute_field_value.js @@ -8,17 +8,19 @@ var LSformElement_supannCompositeAttribute_field_value = new Class({ varLSform.addModule(field_type,this); }, - initializeLSformElement_supannCompositeAttribute_field_value: function(el) { + initializeLSformElement_supannCompositeAttribute_field_value: function(el, reinitialize) { if (!$type(el)) { el = this.li; } el.getElements('p').each(function(p) { this.components[p.get('data-component')]=new LSformElement_supannCompositeAttribute_field_value_component(p,p.get('data-component'),this.name); + if (reinitialize) + this.components[p.get('data-component')].reinitialize(); }, this); }, reinitialize: function(el) { - this.initializeLSformElement_supannCompositeAttribute_field_value(el); + this.initializeLSformElement_supannCompositeAttribute_field_value(el, true); }, clear: function() { diff --git a/src/includes/js/LSformElement_supannCompositeAttribute_field_value_component.js b/src/includes/js/LSformElement_supannCompositeAttribute_field_value_component.js index a7d6c1c1..7aab7be7 100644 --- a/src/includes/js/LSformElement_supannCompositeAttribute_field_value_component.js +++ b/src/includes/js/LSformElement_supannCompositeAttribute_field_value_component.js @@ -45,6 +45,12 @@ var LSformElement_supannCompositeAttribute_field_value_component = new Class({ } }, + reinitialize: function() { + if (this.cconf.type == 'date') { + varLSform.initializeModule('LSformElement_date', this.p); + } + }, + toggleInputSearch: function() { if (this.inputSearch.getStyle('display')=='none') { this.inputSearch.setStyle('display','block');