dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19041
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8152: Update status of new event after created.
------------------------------------------------------------
revno: 8152
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-09-20 14:26:20 +0700
message:
Update status of new event after created.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/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/webapp/dhis-web-caseentry/javascript/commons.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-09-20 05:15:30 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-09-20 07:26:20 +0000
@@ -647,7 +647,13 @@
jQuery('#tb_' + programInstanceId + ' .arrow-left').removeClass("hidden");
jQuery('#tb_' + programInstanceId + ' .arrow-right').removeClass("hidden");
}
- setEventColorStatus( programStageInstanceId, 3 );
+
+ if( dueDateInStage< getCurrentDate() ){
+ setEventColorStatus( programStageInstanceId, 4 );
+ }
+ else{
+ setEventColorStatus( programStageInstanceId, 3 );
+ }
jQuery('#ps_' + programStageInstanceId ).focus();
jQuery('#createNewEncounterDiv_' + programInstanceId).dialog("close");
loadDataEntry( programStageInstanceId );