← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7395: Start date rolled back 3 months in anonymous program.

 

------------------------------------------------------------
revno: 7395
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-06-26 09:48:25 +0700
message:
  Start date rolled back 3 months in anonymous program.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm


--
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/webapp/dhis-web-caseentry/anonymousRegistration.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm	2012-06-26 02:41:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm	2012-06-26 02:48:25 +0000
@@ -2,6 +2,14 @@
    jQuery(document).ready(	function(){
 		datePickerInRange( 'startDate' , 'endDate' );
 		disableCriteriaDiv();
+		
+		var standardInterval = 3;
+		var date = new Date();
+		var d = date.getDate();
+		var m = date.getMonth() - 3;
+		var y = date.getFullYear();
+		var edate= new Date(y, m, d);
+		jQuery('#startDate').datepicker( "setDate" , edate );				
 	});		
 </script>