dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18525
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7847: Minor fix.
------------------------------------------------------------
revno: 7847
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-08-02 20:50:38 +0700
message:
Minor fix.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.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/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-08-02 13:10:04 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-08-02 13:50:38 +0000
@@ -150,8 +150,8 @@
function saveVal( dataElementId )
{
if( jQuery('#entryFormContainer [id=programStageId]') == null) return;
- var programStageId = jQuery('#entryFormContainer [id=programStageId]').val();;
-
+ var programStageId = jQuery('#entryFormContainer [id=programStageId]').val();
+
var fieldId = programStageId + '-' + dataElementId + '-val';
var field = byId( fieldId );
@@ -229,7 +229,7 @@
function saveOpt( dataElementId )
{
- var programStageId = byId('programStageId').value;
+ var programStageId = jQuery('#entryFormContainer [id=programStageId]').val();
var field = byId( programStageId + '-' + dataElementId + '-val' );
field.style.backgroundColor = SAVING_COLOR;
@@ -419,7 +419,7 @@
function markValue( color )
{
var programStageId = jQuery('#entryFormContainer [id=programStageId]').val();
- var element = byId( programStageId + "-" + dataElementId + '-val' );
+ var element = byId( programStageId + "-" + dataElementId + '-val' );
element.style.backgroundColor = color;
}
}