namibia
Diff Revisions
db7090 ...
vs
2086a0 ...
for public/js/app/brochure-workspace/register.js
|
@@ -120,28 +120,28 @@ |
120 |
120 |
|
value : '', |
121 |
121 |
|
maxlength : 5 |
122 |
122 |
|
}, |
123 |
|
- |
'idNumber' : { |
124 |
|
- |
type : 'input', |
125 |
|
- |
id : 'idNumber', |
126 |
|
- |
title : 'ID Number', |
127 |
|
- |
value : '', |
128 |
|
- |
maxlength : 20, |
129 |
|
- |
onChange : function() { |
130 |
|
- |
var dig = $(this).val().substring(0, 6); |
131 |
|
- |
$('#dateOfBirth').val( |
132 |
|
- |
'19' + dig.substring(0, 2) + |
133 |
|
- |
'-' + dig.substring(2, 4) + |
134 |
|
- |
'-' + dig.substring(4, 6) |
135 |
|
- |
); |
136 |
|
- |
} |
137 |
|
- |
}, |
138 |
|
- |
'dateOfBirth' : { |
139 |
|
- |
type : 'date', |
140 |
|
- |
id : 'dateOfBirth', |
141 |
|
- |
title : 'Date of birth', |
142 |
|
- |
style : 'datepicker', |
143 |
|
- |
value : '' |
144 |
|
- |
}, |
|
123 |
+ |
//'idNumber' : { |
|
124 |
+ |
// type : 'input', |
|
125 |
+ |
// id : 'idNumber', |
|
126 |
+ |
// title : 'ID Number', |
|
127 |
+ |
// value : '', |
|
128 |
+ |
// maxlength : 20, |
|
129 |
+ |
// onChange : function() { |
|
130 |
+ |
// var dig = $(this).val().substring(0, 6); |
|
131 |
+ |
// $('#dateOfBirth').val( |
|
132 |
+ |
// '19' + dig.substring(0, 2) + |
|
133 |
+ |
// '-' + dig.substring(2, 4) + |
|
134 |
+ |
// '-' + dig.substring(4, 6) |
|
135 |
+ |
// ); |
|
136 |
+ |
// } |
|
137 |
+ |
//}, |
|
138 |
+ |
//'dateOfBirth' : { |
|
139 |
+ |
// type : 'date', |
|
140 |
+ |
// id : 'dateOfBirth', |
|
141 |
+ |
// title : 'Date of birth', |
|
142 |
+ |
// style : 'datepicker', |
|
143 |
+ |
// value : '' |
|
144 |
+ |
//}, |
145 |
145 |
|
'mobile' : { |
146 |
146 |
|
type : 'mobile', |
147 |
147 |
|
id : 'mobile', |
|
@@ -699,8 +699,8 @@ |
699 |
699 |
|
pin: {required: true, digits: true}, |
700 |
700 |
|
confirmPin: {required: true, digits: true, equalTo: "#pin"}, |
701 |
701 |
|
//idNumber: {required: true, minlength: 13, maxlength: 13, digits: true}, |
702 |
|
- |
idNumber: {required: true, minlength: 3, maxlength: 20, digits: true}, |
703 |
|
- |
dateOfBirth: {required: true, dateISO: true}, |
|
702 |
+ |
//idNumber: {required: true, minlength: 3, maxlength: 20, digits: true}, |
|
703 |
+ |
//dateOfBirth: {required: true, dateISO: true}, |
704 |
704 |
|
mobile: {required: true, mobile: true}, |
705 |
705 |
|
|
706 |
706 |
|
//contactFirstName: {required: true}, |