dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11169
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3150: Fixed Bug: changed range to rangelength
------------------------------------------------------------
revno: 3150
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-03-24 11:13:34 +0100
message:
Fixed Bug: changed range to rangelength
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js 2011-03-22 10:50:42 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js 2011-03-24 10:13:34 +0000
@@ -10,7 +10,7 @@
rawPassword : {
required : false,
password : true,
- range : r.user.password.range,
+ range : r.user.password.rangelength,
notequalto : '#username'
},
retypePassword : {
@@ -19,18 +19,18 @@
},
surname : {
required : true,
- range : r.user.name.range
+ range : r.user.name.rangelength
},
firstName : {
required : true,
- range : r.user.name.range
+ range : r.user.name.rangelength
},
email : {
email : true,
- range : r.user.email.range
+ range : r.user.email.rangelength
},
phoneNumber : {
- range : r.user.phone.range
+ range : r.user.phone.rangelength
}
}
@@ -38,12 +38,12 @@
'rules' : rules
} );
- jQuery( "#rawPassword" ).attr( "maxlength", r.user.password.range[1] );
- jQuery( "#retypePassword" ).attr( "maxlength", r.user.password.range[1] );
- jQuery( "#surname" ).attr( "maxlength", r.user.name.range[1] );
- jQuery( "#firstName" ).attr( "maxlength", r.user.name.range[1] );
- jQuery( "#email" ).attr( "maxlength", r.user.email.range[1] );
- jQuery( "#phoneNumber" ).attr( "maxlength", r.user.phone.range[1] );
+ jQuery( "#rawPassword" ).attr( "maxlength", r.user.password.rangelength[1] );
+ jQuery( "#retypePassword" ).attr( "maxlength", r.user.password.rangelength[1] );
+ jQuery( "#surname" ).attr( "maxlength", r.user.name.rangelength[1] );
+ jQuery( "#firstName" ).attr( "maxlength", r.user.name.rangelength[1] );
+ jQuery( "#email" ).attr( "maxlength", r.user.email.rangelength[1] );
+ jQuery( "#phoneNumber" ).attr( "maxlength", r.user.phone.rangelength[1] );
/* end validation */
var oldPassword = byId( 'oldPassword' );