Rename trunk directory to public_html
[ldapsaisie.git] / public_html / includes / js / LSformElement_date.js
1 var LSformElement_date = new Class({
2     initialize: function(){
3       this.fields = [];
4       this.initialiseLSformElement_date();
5       if ($type(varLSform)) {
6         varLSform.addModule("LSformElement_date",this);
7       }
8     },
9     
10     initialiseLSformElement_date: function(el) {
11       if (!$type(el)) {
12         el = document;
13       }
14       var getName = /^(.*)\[\]$/
15       el.getElements('input.LSformElement_date').each(function(input) {
16         var name = getName.exec(input.name)[1];
17         this.fields[name] = new LSformElement_date_field(name,input);
18       }, this);
19     },
20     
21     reinitialize: function(el) {
22       this.initialiseLSformElement_date(el);
23     }
24 });
25 window.addEvent(window.ie ? 'load' : 'domready', function() {
26   varLSformElement_date = new LSformElement_date();
27 });