ldapsaisie/trunk/includes/js/LSformElement_password.js
Benjamin Renard 05fe7f0042 - LSdefault :
-> Ajout de la méthode getParams()
- LSformElement_password :
  -> Refonte en utilisant les templates
  -> Refonte Javascript en utilisant les JSparams via LSdefault et creation d'un
     LSformElement_password_field
2008-10-16 12:01:26 +00:00

17 lines
580 B
JavaScript

var LSformElement_password = new Class({
initialize: function(){
this.fields=new Hash();
this.initialiseLSformElement_password();
},
initialiseLSformElement_password: function() {
var getName = /^(.*)\[\]$/
$$('input.LSformElement_password').each(function(input) {
var name = getName.exec(input.name)[1];
this.fields[name] = new LSformElement_password_field(name,input);
}, this);
}
});
window.addEvent(window.ie ? 'load' : 'domready', function() {
varLSformElement_password = new LSformElement_password();
});