← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4099: Fixed bug: The description is not updated when you type directly in the condition text area ( Pat...

 

------------------------------------------------------------
revno: 4099
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-07-08 09:17:22 +0700
message:
  Fixed bug: The description is not updated when you type directly in the condition text area ( Patient module ).
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/caseagg.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/caseagg.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/caseagg.js	2011-04-26 06:38:43 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/caseagg.js	2011-07-08 02:17:22 +0000
@@ -42,13 +42,13 @@
 function getPreviousPeriodForStart() 
 {
 	var index = byId('sDateLB').options[byId('sDateLB').selectedIndex].value;
-	jQuery.postJSON('previousPeriods.action?startField=true&index=' + index, responseListPeriodForStartReceived );	
+	jQuery.postJSON('previousPeriods.action?startField=true&index=' + index, {}, responseListPeriodForStartReceived );	
 }
 
 function getNextPeriodForStart() 
 {
 	var index = byId('sDateLB').options[byId('sDateLB').selectedIndex].value;
-	jQuery.postJSON('nextPeriods.action?startField=true&index=' + index, responseListPeriodForStartReceived );	
+	jQuery.postJSON('nextPeriods.action?startField=true&index=' + index, {}, responseListPeriodForStartReceived );	
 }
 
 function responseListPeriodForStartReceived( json ) 
@@ -56,20 +56,20 @@
 	clearListById('sDateLB');
 	
 	jQuery.each( json.periods, function(i, item ){
-		addOptionById('sDateLB', item.name , i );
+		addOptionById('sDateLB', i, item.name);
 	});
 }
 
 function getPreviousPeriodForEnd() 
 {
 	var index = byId('eDateLB').options[byId('eDateLB').selectedIndex].value;
-	jQuery.postJSON('previousPeriods.action?startField=false&index=' + index, responseListPeriodForEndReceived );	
+	jQuery.postJSON('previousPeriods.action?startField=false&index=' + index, {}, responseListPeriodForEndReceived );	
 }
 
 function getNextPeriodForEnd() 
 {
 	var index = byId('eDateLB').options[byId('eDateLB').selectedIndex].value;
-	jQuery.postJSON('nextPeriods.action?startField=false&index=' + index, responseListPeriodForEndReceived );	
+	jQuery.postJSON('nextPeriods.action?startField=false&index=' + index, {}, responseListPeriodForEndReceived );	
 }
 
 function responseListPeriodForEndReceived( json ) 
@@ -77,7 +77,7 @@
 	clearListById('eDateLB');
 	
 	jQuery.each( json.periods, function(i, item ){
-		addOptionById('eDateLB', item.name , i );
+		addOptionById('eDateLB', i, item.name );
 	});
 }