← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3181: Fix bug: Calendar doesn't support dates earlier than 2000 in NBITS.

 

------------------------------------------------------------
revno: 3181
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-03-28 17:32:09 +0700
message:
  Fix bug: Calendar doesn't support dates earlier than 2000 in NBITS.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.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-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties	2011-03-28 09:08:01 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties	2011-03-28 10:32:09 +0000
@@ -290,3 +290,4 @@
 please_specify_an_orgunit										= Please specify an organisation unit
 please_select_to_date_greater_or_equals_to_from_date			= Please select to-date greater or equals to from-date
 violate_validation												= Violate validation
+common_info														= Common information

=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2011-03-24 13:43:29 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2011-03-28 10:32:09 +0000
@@ -871,7 +871,7 @@
 		buttonImage: '../images/calendar.png',
 		buttonImageOnly: true,
 		constrainInput: true,
-        yearRange: '-11'
+        yearRange: '-100:+100'
 	});
 	s = jQuery("#" + id );		
 	if( s.val()=='' ) s.val( getCurrentDate() );		
@@ -890,7 +890,7 @@
 		buttonImage: '../images/calendar.png',
 		buttonImageOnly: true,
 		constrainInput: true,
-        yearRange: '-11'
+        yearRange: '-100:+100'
 	});
 	
 	if( today == undefined ) today = false;
@@ -914,7 +914,7 @@
 		buttonImage: '../images/calendar.png',
 		buttonImageOnly: true,
 		constrainInput: true,
-        yearRange: '-11'
+        yearRange: '-100:+100'
 	});
 		
 }
@@ -939,7 +939,7 @@
 		buttonImageOnly: true,
 		maxDate: '+0d +0w',
 		constrainInput: true,
-        yearRange: '-11'
+        yearRange: '-100:+100'
 	});
 	
 	if( today == undefined ) today = false;
@@ -983,7 +983,7 @@
 		buttonImage: '../images/calendar.png',
 		buttonImageOnly: true,
 		constrainInput: true,
-        yearRange: '-11',
+        yearRange: '-100:+100',
 		onSelect: function(selectedDate)
 		{
 			var option = this.id == startdate ? "minDate" : "maxDate";