← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3136: Fixed BUG: changed from range to rangelength, range was ment for range of numbers

 

------------------------------------------------------------
revno: 3136
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-03-23 09:45:29 +0100
message:
  Fixed BUG: changed from range to rangelength, range was ment for range of numbers
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addDataSet.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addSection.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editDataSet.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editSection.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupSetForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupSetForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addRoleForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserGroupForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateRoleForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserForm.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserGroupForm.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/validationRules.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js	2011-03-22 10:50:42 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/validationRules.js	2011-03-23 08:45:29 +0000
@@ -2,34 +2,34 @@
 	/* dhis-web-maintenance-user */
 	"user" : {
 		"name" : {
-			"range" : [ 2, 140 ]
+			"rangelength" : [ 2, 140 ]
 		},
 		"username" : {
-			"range" : [ 2, 140 ],
+			"rangelength" : [ 2, 140 ],
 			"firstletteralphabet" : true,
 			"alphanumeric" : true
 		},
 		"password" : {
-			"range" : [ 8, 35 ]
+			"rangelength" : [ 8, 35 ]
 		},
 		"email" : {
-			"range" : [ 0, 160 ]
+			"rangelength" : [ 0, 160 ]
 		},
 		"phone" : {
-			"range" : [ 0, 80 ]
+			"rangelength" : [ 0, 80 ]
 		}
 	},
 	"role" : {
 		"name" : {
-			"range" : [ 2, 140 ]
+			"rangelength" : [ 2, 140 ]
 		},
 		"description" : {
-			"range" : [ 2, 210 ]
+			"rangelength" : [ 2, 210 ]
 		}
 	},
 	"userGroup" : {
 		"name" : {
-			"range" : [ 2, 210 ],
+			"rangelength" : [ 2, 210 ],
 			"alphanumericwithbasicpuncspaces" : true,
 			"firstletteralphabet" : true
 		}
@@ -38,53 +38,53 @@
 	/* dhis-web-maintenance-organisationunit */
 	"organisationUnit": {
 		"name": {
-			"range": [2, 160]
+			"rangelength": [2, 160]
 		},
 		"shortName": {
-			"range": [2, 25]
+			"rangelength": [2, 25]
 		},
 		"code": {
-			"range": [0, 25]
+			"rangelength": [0, 25]
 		},
 		"url": {
-			"range": [0, 255]			
+			"rangelength": [0, 255]			
 		},
 		"contactPerson": {
-			"range": [0, 255]
+			"rangelength": [0, 255]
 		},
 		"address": {
-			"range": [0, 255]
+			"rangelength": [0, 255]
 		},
 		"email": {
-			"range": [0, 250]
+			"rangelength": [0, 250]
 		},
 		"phoneNumber": {
-			"range": [0, 255]
+			"rangelength": [0, 255]
 		}
 	},
 	"organisationUnitGroup": {
 		"name": {
-			"range": [2, 160]
+			"rangelength": [2, 160]
 		}
 	},
 	"organisationUnitGroupSet": {
 		"name": {
-			"range": [2, 230]
+			"rangelength": [2, 230]
 		},
 		"description": {
-			"range": [2, 255]
+			"rangelength": [2, 255]
 		}
 	},
 	
 	/* dhis-web-maintenance-dataset */
 	"dataEntry": {
 		"name": {
-			"range": [4, 100]
+			"rangelength": [4, 100]
 		}
 	},
 	"section": {
 		"name": {
-			"range": [2, 160]
+			"rangelength": [2, 160]
 		},
 		"selectedList": {
 			
@@ -94,17 +94,17 @@
 		"name": {
 			"alphanumericwithbasicpuncspaces": true,
 			"firstletteralphabet": false,
-			"range": [4, 150]
+			"rangelength": [4, 150]
 		},
 		"shortName": {
 			"alphanumericwithbasicpuncspaces": true,
 			"firstletteralphabet": false,
-			"range": [2, 20]
+			"rangelength": [2, 20]
 		},
 		"code": {
 			"alphanumericwithbasicpuncspaces": true,
 			"notOnlyDigits": false,
-			"range": [4, 40]
+			"rangelength": [4, 40]
 		}
 	}
 }

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addDataSet.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addDataSet.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addDataSet.js	2011-03-23 08:45:29 +0000
@@ -7,18 +7,18 @@
 			required : true,
 			alphanumericwithbasicpuncspaces : r.dataSet.name.alphanumericwithbasicpuncspaces,
 			firstletteralphabet : r.dataSet.name.firstletteralphabet,
-			rangelength : r.dataSet.name.length
+			rangelength : r.dataSet.name.rangelength
 		},
 		shortName : {
 			required : true,
 			alphanumericwithbasicpuncspaces : r.dataSet.shortName.alphanumericwithbasicpuncspaces,
 			firstletteralphabet : r.dataSet.shortName.firstletteralphabet,
-			rangelength : r.dataSet.shortName.length
+			rangelength : r.dataSet.shortName.rangelength
 		},
 		code : {
 			alphanumericwithbasicpuncspaces : r.dataSet.code.alphanumericwithbasicpuncspaces,
 			notOnlyDigits : r.dataSet.code.notOnlyDigits,
-			rangelength : r.dataSet.code.length
+			rangelength : r.dataSet.code.rangelength
 		},
 		frequencySelect : {
 			required : true
@@ -36,9 +36,9 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.dataSet.name.length[1] );
-	jQuery( "#shortName" ).attr( "maxlength", r.dataSet.shortName.length[1] );
-	jQuery( "#code" ).attr( "maxlength", r.dataSet.code.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.dataSet.name.rangelength[1] );
+	jQuery( "#shortName" ).attr( "maxlength", r.dataSet.shortName.rangelength[1] );
+	jQuery( "#code" ).attr( "maxlength", r.dataSet.code.rangelength[1] );
 
 	checkValueIsExist( "name", "validateDataSet.action" );
 	checkValueIsExist( "shortName", "validateDataSet.action" );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addSection.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addSection.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/addSection.js	2011-03-23 08:45:29 +0000
@@ -5,7 +5,7 @@
 	var rules = {
 		sectionName : {
 			required : true,
-			rangelength : r.section.name.length
+			rangelength : r.section.name.rangelength
 		},
 		selectedList : {
 			required : true
@@ -23,7 +23,7 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#sectionName" ).attr( "maxlength", r.section.name.length[1] );
+	jQuery( "#sectionName" ).attr( "maxlength", r.section.name.rangelength[1] );
 
 	checkValueIsExist( "sectionName", "validateSection.action", {
 		dataSetId : function()

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editDataSet.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editDataSet.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editDataSet.js	2011-03-23 08:45:29 +0000
@@ -7,18 +7,18 @@
 			required : true,
 			alphanumericwithbasicpuncspaces : r.dataSet.name.alphanumericwithbasicpuncspaces,
 			firstletteralphabet : r.dataSet.name.firstletteralphabet,
-			rangelength : r.dataSet.name.length
+			rangelength : r.dataSet.name.rangelength
 		},
 		shortName : {
 			required : true,
 			alphanumericwithbasicpuncspaces : r.dataSet.shortName.alphanumericwithbasicpuncspaces,
 			firstletteralphabet : r.dataSet.shortName.firstletteralphabet,
-			rangelength : r.dataSet.shortName.length
+			rangelength : r.dataSet.shortName.rangelength
 		},
 		code : {
 			alphanumericwithbasicpuncspaces : r.dataSet.code.alphanumericwithbasicpuncspaces,
 			notOnlyDigits : r.dataSet.code.notOnlyDigits,
-			rangelength : r.dataSet.code.length
+			rangelength : r.dataSet.code.rangelength
 		},
 		frequencySelect : {
 			required : true
@@ -36,9 +36,9 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.dataSet.name.length[1] );
-	jQuery( "#shortName" ).attr( "maxlength", r.dataSet.shortName.length[1] );
-	jQuery( "#code" ).attr( "maxlength", r.dataSet.code.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.dataSet.name.rangelength[1] );
+	jQuery( "#shortName" ).attr( "maxlength", r.dataSet.shortName.rangelength[1] );
+	jQuery( "#code" ).attr( "maxlength", r.dataSet.code.rangelength[1] );
 
 	checkValueIsExist( "name", "validateDataSet.action", {
 		dataSetId : function()

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editSection.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editSection.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/editSection.js	2011-03-23 08:45:29 +0000
@@ -5,7 +5,7 @@
 	var rules = {
 		sectionName : {
 			required : true,
-			rangelength : r.section.name.length
+			rangelength : r.section.name.rangelength
 		}
 	};
 
@@ -20,7 +20,7 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#sectionName" ).attr( "maxlength", r.section.name.length[1] );
+	jQuery( "#sectionName" ).attr( "maxlength", r.section.name.rangelength[1] );
 
 	checkValueIsExist( "sectionName", "validateSection.action", {
 		dataSetId : function()

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/viewDataEntryForm.js	2011-03-23 08:45:29 +0000
@@ -5,7 +5,7 @@
 	var rules = {
 		nameField : {
 			required : true,
-			rangelength : r.dataEntry.name.length
+			rangelength : r.dataEntry.name.rangelength
 		}
 	};
 
@@ -17,7 +17,7 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#nameField" ).attr( "maxlength", r.dataEntry.name.length[1] );
+	jQuery( "#nameField" ).attr( "maxlength", r.dataEntry.name.rangelength[1] );
 
 	jQuery( "#dataElementSelection" ).resizable( {
 		minHeight : 210,

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitForm.js	2011-03-23 08:45:29 +0000
@@ -5,15 +5,15 @@
 	var rules = {
 		name : {
 			required : true,
-			rangelength : r.organisationUnit.name.length
+			rangelength : r.organisationUnit.name.rangelength
 		},
 		shortName : {
 			required : true,
-			rangelength : r.organisationUnit.shortName.length
+			rangelength : r.organisationUnit.shortName.rangelength
 		},
 		code : {
 			required : true,
-			rangelength : r.organisationUnit.code.length
+			rangelength : r.organisationUnit.code.rangelength
 		},
 		openingDate : {
 			required : true
@@ -29,20 +29,20 @@
 		},
 		url : {
 			url : true,
-			rangelength : r.organisationUnit.url.length
+			rangelength : r.organisationUnit.url.rangelength
 		},
 		contactPerson : {
-			rangelength : r.organisationUnit.contactPerson.length
+			rangelength : r.organisationUnit.contactPerson.rangelength
 		},
 		address : {
-			rangelength : r.organisationUnit.address.length
+			rangelength : r.organisationUnit.address.rangelength
 		},
 		email : {
 			email : true,
-			rangelength : r.organisationUnit.email.length
+			rangelength : r.organisationUnit.email.rangelength
 		},
 		phoneNumber : {
-			rangelength : r.organisationUnit.phoneNumber.length
+			rangelength : r.organisationUnit.phoneNumber.rangelength
 		}
 	};
 
@@ -56,14 +56,14 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.organisationUnit.name.length[1] );
-	jQuery( "#shortName" ).attr( "maxlength", r.organisationUnit.shortName.length[1] );
-	jQuery( "#code" ).attr( "maxlength", r.organisationUnit.code.length[1] );
-	jQuery( "#url" ).attr( "maxlength", r.organisationUnit.url.length[1] );
-	jQuery( "#contactPerson" ).attr( "maxlength", r.organisationUnit.contactPerson.length[1] );
-	jQuery( "#address" ).attr( "maxlength", r.organisationUnit.address.length[1] );
-	jQuery( "#email" ).attr( "maxlength", r.organisationUnit.email.length[1] );
-	jQuery( "#phoneNumber" ).attr( "maxlength", r.organisationUnit.phoneNumber.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.organisationUnit.name.rangelength[1] );
+	jQuery( "#shortName" ).attr( "maxlength", r.organisationUnit.shortName.rangelength[1] );
+	jQuery( "#code" ).attr( "maxlength", r.organisationUnit.code.rangelength[1] );
+	jQuery( "#url" ).attr( "maxlength", r.organisationUnit.url.rangelength[1] );
+	jQuery( "#contactPerson" ).attr( "maxlength", r.organisationUnit.contactPerson.rangelength[1] );
+	jQuery( "#address" ).attr( "maxlength", r.organisationUnit.address.rangelength[1] );
+	jQuery( "#email" ).attr( "maxlength", r.organisationUnit.email.rangelength[1] );
+	jQuery( "#phoneNumber" ).attr( "maxlength", r.organisationUnit.phoneNumber.rangelength[1] );
 
 	checkValueIsExist( "name", "validateOrganisationUnit.action" );
 	datePickerValid( 'openingDate', false );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupForm.js	2011-03-23 08:45:29 +0000
@@ -5,7 +5,7 @@
 	var rules = {
 		name : {
 			required : true,
-			rangelength : r.organisationUnitGroup.name.length
+			rangelength : r.organisationUnitGroup.name.rangelength
 		}
 	};
 
@@ -16,7 +16,7 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroup.name.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroup.name.rangelength[1] );
 
 	checkValueIsExist( "name", "validateOrganisationUnitGroup.action" );
 } );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupSetForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupSetForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/addOrganisationUnitGroupSetForm.js	2011-03-23 08:45:29 +0000
@@ -5,11 +5,11 @@
 	var rules = {
 		name : {
 			required : true,
-			rangelength : r.organisationUnitGroupSet.name.length
+			rangelength : r.organisationUnitGroupSet.name.rangelength
 		},
 		description : {
 			required : true,
-			rangelength : r.organisationUnitGroupSet.description.length
+			rangelength : r.organisationUnitGroupSet.description.rangelength
 		}
 	};
 
@@ -24,8 +24,8 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroupSet.name.length[1] );
-	jQuery( "#description" ).attr( "maxlength", r.organisationUnitGroupSet.description.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroupSet.name.rangelength[1] );
+	jQuery( "#description" ).attr( "maxlength", r.organisationUnitGroupSet.description.rangelength[1] );
 
 	checkValueIsExist( "name", "validateOrganisationUnitGroupSet.action" );
 

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitForm.js	2011-03-23 08:45:29 +0000
@@ -5,15 +5,15 @@
 	var rules = {
 		name : {
 			required : true,
-			rangelength : r.organisationUnit.name.length
+			rangelength : r.organisationUnit.name.rangelength
 		},
 		shortName : {
 			required : true,
-			rangelength : r.organisationUnit.shortName.length
+			rangelength : r.organisationUnit.shortName.rangelength
 		},
 		code : {
 			required : true,
-			rangelength : r.organisationUnit.code.length
+			rangelength : r.organisationUnit.code.rangelength
 		},
 		openingDate : {
 			required : true
@@ -29,20 +29,20 @@
 		},
 		url : {
 			url : true,
-			rangelength : r.organisationUnit.url.length
+			rangelength : r.organisationUnit.url.rangelength
 		},
 		contactPerson : {
-			rangelength : r.organisationUnit.contactPerson.length
+			rangelength : r.organisationUnit.contactPerson.rangelength
 		},
 		address : {
-			rangelength : r.organisationUnit.address.length
+			rangelength : r.organisationUnit.address.rangelength
 		},
 		email : {
 			email : true,
-			rangelength : r.organisationUnit.email.length
+			rangelength : r.organisationUnit.email.rangelength
 		},
 		phoneNumber : {
-			rangelength : r.organisationUnit.phoneNumber.length
+			rangelength : r.organisationUnit.phoneNumber.rangelength
 		}
 	};
 
@@ -55,12 +55,12 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.organisationUnit.name.length[1] );
-	jQuery( "#shortName" ).attr( "maxlength", r.organisationUnit.shortName.length[1] );
-	jQuery( "#code" ).attr( "maxlength", r.organisationUnit.code.length[1] );
-	jQuery( "#url" ).attr( "maxlength", r.organisationUnit.url.length[1] );
-	jQuery( "#contactPerson" ).attr( "maxlength", r.organisationUnit.contactPerson.length[1] );
-	jQuery( "#address" ).attr( "maxlength", r.organisationUnit.address.length[1] );
-	jQuery( "#email" ).attr( "maxlength", r.organisationUnit.email.length[1] );
-	jQuery( "#phoneNumber" ).attr( "maxlength", r.organisationUnit.phoneNumber.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.organisationUnit.name.rangelength[1] );
+	jQuery( "#shortName" ).attr( "maxlength", r.organisationUnit.shortName.rangelength[1] );
+	jQuery( "#code" ).attr( "maxlength", r.organisationUnit.code.rangelength[1] );
+	jQuery( "#url" ).attr( "maxlength", r.organisationUnit.url.rangelength[1] );
+	jQuery( "#contactPerson" ).attr( "maxlength", r.organisationUnit.contactPerson.rangelength[1] );
+	jQuery( "#address" ).attr( "maxlength", r.organisationUnit.address.rangelength[1] );
+	jQuery( "#email" ).attr( "maxlength", r.organisationUnit.email.rangelength[1] );
+	jQuery( "#phoneNumber" ).attr( "maxlength", r.organisationUnit.phoneNumber.rangelength[1] );
 } );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupForm.js	2011-03-23 08:45:29 +0000
@@ -4,7 +4,7 @@
 	var rules = {
 		name: {
 			required:true,
-			rangelength : r.organisationUnitGroup.name.length
+			rangelength : r.organisationUnitGroup.name.rangelength
 		}
 	};
 
@@ -13,5 +13,5 @@
 		'rules': rules
 	});	
 
-	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroup.name.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroup.name.rangelength[1] );
 });	

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupSetForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupSetForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/updateOrganisationUnitGroupSetForm.js	2011-03-23 08:45:29 +0000
@@ -5,11 +5,11 @@
 	var rules = {
 		name : {
 			required : true,
-			rangelength : r.organisationUnitGroupSet.name.length
+			rangelength : r.organisationUnitGroupSet.name.rangelength
 		},
 		description : {
 			required : true,
-			rangelength : r.organisationUnitGroupSet.description.length
+			rangelength : r.organisationUnitGroupSet.description.rangelength
 		}
 	};
 
@@ -24,8 +24,8 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroupSet.name.length[1] );
-	jQuery( "#description" ).attr( "maxlength", r.organisationUnitGroupSet.description.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.organisationUnitGroupSet.name.rangelength[1] );
+	jQuery( "#description" ).attr( "maxlength", r.organisationUnitGroupSet.description.rangelength[1] );
 
 	checkValueIsExist( "name", "validateOrganisationUnitGroupSet.action", {
 		id : $organisationUnitGroupSet.id

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addRoleForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addRoleForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addRoleForm.js	2011-03-23 08:45:29 +0000
@@ -7,11 +7,11 @@
 	var rules = {
 		name : {
 			required : true,
-			rangelength : r.role.name.length
+			rangelength : r.role.name.rangelength
 		},
 		description : {
 			required : true,
-			rangelength : r.role.description.length
+			rangelength : r.role.description.rangelength
 		}
 	}
 
@@ -24,8 +24,8 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.role.name.length[1] );
-	jQuery( "#description" ).attr( "maxlength", r.role.description.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.role.name.rangelength[1] );
+	jQuery( "#description" ).attr( "maxlength", r.role.description.rangelength[1] );
 
 	/* remote validation */
 	checkValueIsExist( "name", "validateRole.action" );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserForm.js	2011-03-23 08:45:29 +0000
@@ -7,13 +7,13 @@
 			required : true,
 			firstletteralphabet : r.user.username.firstletteralphabet,
 			alphanumeric : r.user.username.alphanumeric,
-			rangelength : r.user.username.length
+			rangelength : r.user.username.rangelength
 		},
 		rawPassword : {
 			required : true,
 			password : true,
 			notequalto : '#username',
-			rangelength : r.user.password.length
+			rangelength : r.user.password.rangelength
 		},
 		retypePassword : {
 			required : true,
@@ -21,18 +21,18 @@
 		},
 		surname : {
 			required : true,
-			rangelength : r.user.name.length
+			rangelength : r.user.name.rangelength
 		},
 		firstName : {
 			required : true,
-			rangelength : r.user.name.length
+			rangelength : r.user.name.rangelength
 		},
 		email : {
 			email : true,
-			rangelength : r.user.email.length
+			rangelength : r.user.email.rangelength
 		},
 		phoneNumber : {
-			rangelength : r.user.phone.length
+			rangelength : r.user.phone.rangelength
 		},
 		roleValidator : {
 			required : true
@@ -50,13 +50,13 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#username" ).attr( "maxlength", r.user.username.length[1] );
-	jQuery( "#rawPassword" ).attr( "maxlength", r.user.password.length[1] );
-	jQuery( "#retypePassword" ).attr( "maxlength", r.user.password.length[1] );
-	jQuery( "#surname" ).attr( "maxlength", r.user.name.length[1] );
-	jQuery( "#firstName" ).attr( "maxlength", r.user.name.length[1] );
-	jQuery( "#email" ).attr( "maxlength", r.user.email.length[1] );
-	jQuery( "#phoneNumber" ).attr( "maxlength", r.user.phone.length[1] );
+	jQuery( "#username" ).attr( "maxlength", r.user.username.rangelength[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] );
 
 	/* remote validation */
 	checkValueIsExist( "username", "validateUser.action" );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserGroupForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserGroupForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/addUserGroupForm.js	2011-03-23 08:45:29 +0000
@@ -7,7 +7,7 @@
 			required : true,
 			alphanumericwithbasicpuncspaces : r.userGroup.name.alphanumericwithbasicpuncspaces,
 			firstletteralphabet : r.userGroup.name.firstletteralphabet,
-			rangelength : r.userGroup.name.length
+			rangelength : r.userGroup.name.rangelength
 		},
 		memberValidator : {
 			required : true
@@ -25,7 +25,7 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.userGroup.name.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.userGroup.name.rangelength[1] );
 
 	/* remote validation */
 	checkValueIsExist( "name", "validateUserGroup.action" );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateRoleForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateRoleForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateRoleForm.js	2011-03-23 08:45:29 +0000
@@ -7,11 +7,11 @@
 	var rules = {
 		name : {
 			required : true,
-			rangelength : r.role.name.length
+			rangelength : r.role.name.rangelength
 		},
 		description : {
 			required : true,
-			rangelength : r.role.description.length
+			rangelength : r.role.description.rangelength
 		}
 	};
 
@@ -24,8 +24,8 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.role.name.length[1] );
-	jQuery( "#description" ).attr( "maxlength", r.role.description.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.role.name.rangelength[1] );
+	jQuery( "#description" ).attr( "maxlength", r.role.description.rangelength[1] );
 
 	/* remote validation */
 	checkValueIsExist( "name", "validateRole.action", {

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserForm.js	2011-03-23 08:45:29 +0000
@@ -6,27 +6,27 @@
 		rawPassword : {
 			password : true,
 			notequalto : '#username',
-			rangelength : r.user.password.length
+			rangelength : r.user.password.rangelength
 		},
 		retypePassword : {
 			required : false,
 			equalTo : '#rawPassword',
-			rangelength : r.user.password.length
+			rangelength : r.user.password.rangelength
 		},
 		surname : {
 			required : true,
-			rangelength : r.user.name.length
+			rangelength : r.user.name.rangelength
 		},
 		firstName : {
 			required : true,
-			rangelength : r.user.name.length
+			rangelength : r.user.name.rangelength
 		},
 		email : {
 			email : true,
-			rangelength : r.user.email.length
+			rangelength : r.user.email.rangelength
 		},
 		phoneNumber : {
-			rangelength : r.user.phone.length
+			rangelength : r.user.phone.rangelength
 		},
 		roleValidator : {
 			required : true
@@ -44,11 +44,11 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#rawPassword" ).attr( "maxlength", r.user.password.length[1] );
-	jQuery( "#retypePassword" ).attr( "maxlength", r.user.password.length[1] );
-	jQuery( "#surname" ).attr( "maxlength", r.user.name.length[1] );
-	jQuery( "#firstName" ).attr( "maxlength", r.user.name.length[1] );
-	jQuery( "#email" ).attr( "maxlength", r.user.email.length[1] );
-	jQuery( "#phoneNumber" ).attr( "maxlength", r.user.phone.length[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] );
 
 } );

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserGroupForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserGroupForm.js	2011-03-23 02:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/javascript/updateUserGroupForm.js	2011-03-23 08:45:29 +0000
@@ -7,7 +7,7 @@
 			required : true,
 			alphanumericwithbasicpuncspaces : r.userGroup.name.alphanumericwithbasicpuncspaces,
 			firstletteralphabet : r.userGroup.name.firstletteralphabet,
-			rangelength : r.userGroup.name.length
+			rangelength : r.userGroup.name.rangelength
 		},
 		memberValidator : {
 			required : true
@@ -25,5 +25,5 @@
 		'rules' : rules
 	} );
 
-	jQuery( "#name" ).attr( "maxlength", r.userGroup.name.length[1] );
+	jQuery( "#name" ).attr( "maxlength", r.userGroup.name.rangelength[1] );
 } );