dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19066
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8171: Update status of events after modify due-date of event.
------------------------------------------------------------
revno: 8171
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-09-21 13:25:25 +0700
message:
Update status of events after modify due-date of event.
modified:
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/selectPatient.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/javascript/commons.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-09-21 06:20:26 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-09-21 06:25:25 +0000
@@ -857,11 +857,15 @@
{
box.css('border-color', COLOR_RED);
box.css('background-color', COLOR_LIGHT_RED);
+ jQuery('#stat_' + programStageInstanceId + " option[value=3]").remove();
+ jQuery('#stat_' + programStageInstanceId ).prepend("<option value='4' selected>" + i18n_overdue + "</option>");
}
else
{
box.css('border-color', COLOR_YELLOW);
box.css('background-color', COLOR_LIGHT_YELLOW);
+ jQuery('#stat_' + programStageInstanceId + " option[value=4]").remove();
+ jQuery('#stat_' + programStageInstanceId ).prepend("<option value='3' selected>" + i18n_scheduled_in_future + "</option>");
}
markValue( resultColor );
}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/selectPatient.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/selectPatient.vm 2012-09-21 06:20:26 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/selectPatient.vm 2012-09-21 06:25:25 +0000
@@ -106,6 +106,7 @@
var i18n_comfirm_delete_event = '$encoder.jsEscape( $i18n.getString( "comfirm_delete_event" ) , "'")';
var i18n_the_date_is_scheduled = '$encoder.jsEscape( $i18n.getString( "the_date_is_scheduled" ) , "'")';
var i18n_overdue = '$encoder.jsEscape( $i18n.getString( "overdue" ) , "'")';
+ var i18n_scheduled_in_future = '$encoder.jsEscape( $i18n.getString( "scheduled_in_future" ) , "'")';
var checkedDuplicate = false;
// -1: no search anything