ldapsaisie/src/includes/js/LSformElement_supannCompositeAttribute_field_value.js
Benjamin Renard 7098b3ee79 Massive change of files organisation to move all files outside web-root
The web-root directory now contains URL rewrite stuff. All PHP & static files are
in root src directory and are served via LSurl routes.
2020-05-06 12:17:35 +02:00

29 lines
869 B
JavaScript

var LSformElement_supannCompositeAttribute_field_value = new Class({
initialize: function(li,name,field_type){
this.li=li;
this.name = name;
this.components = {};
this.field_type = field_type;
this.initializeLSformElement_supannCompositeAttribute_field_value();
varLSform.addModule(field_type,this);
},
initializeLSformElement_supannCompositeAttribute_field_value: function(el) {
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);
}, this);
},
reinitialize: function(el) {
this.initializeLSformElement_supannCompositeAttribute_field_value(el);
},
clear: function() {
for (c in this.components) {
this.components[c].clear();
}
}
});