mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-09-06 23:01:05 +02:00
![Benjamin Renard](/assets/img/avatar_default.png)
-> Refonte en utilisant les templates - LSformElement_ssh_key -> Correction du fieldTemplate qui ne prévoyait pas une valeur vide
27 lines
799 B
JavaScript
27 lines
799 B
JavaScript
var LSformElement_date = new Class({
|
|
initialize: function(){
|
|
this.fields = [];
|
|
this.initialiseLSformElement_date();
|
|
if ($type(varLSform)) {
|
|
varLSform.addModule("LSformElement_date",this);
|
|
}
|
|
},
|
|
|
|
initialiseLSformElement_date: function(el) {
|
|
if (!$type(el)) {
|
|
el = document;
|
|
}
|
|
var getName = /^(.*)\[\]$/
|
|
el.getElements('input.LSformElement_date').each(function(input) {
|
|
var name = getName.exec(input.name)[1];
|
|
this.fields[name] = new LSformElement_date_field(name,input);
|
|
}, this);
|
|
},
|
|
|
|
reinitialize: function(el) {
|
|
this.initialiseLSformElement_date(el);
|
|
}
|
|
});
|
|
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
|
varLSformElement_date = new LSformElement_date();
|
|
});
|