← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3787: Fix bug: When choose an indicator into Indicator Group Editor, the available groups aren't shown ...

 

------------------------------------------------------------
revno: 3787
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-05-30 16:25:50 +0700
message:
  Fix bug: When choose an indicator into Indicator Group Editor, the available groups aren't shown properly.
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroupEditorView.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-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroupEditorView.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroupEditorView.js	2011-04-11 13:46:07 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroupEditorView.js	2011-05-30 09:25:50 +0000
@@ -212,6 +212,14 @@
 	jQuery.postJSON( "getAssignedIndicatorGroups.action", {
 		indicatorId: id
 	}, function( json ){
+		
+		var availabelGroups_2 = jQuery( "#view_2 #availableGroups" );
+		availabelGroups_2.empty();		
+		for(var index in indicatorGroups)
+		{
+			availabelGroups_2.append( '<option value="' + index + '" selected="selected">' + indicatorGroups[index] + '</option>');
+		}
+			
 		jQuery.each(json.indicatorGroups, function(i, item ){
 			list_2.append('<option value="' + item.id + '">' + item.name + '</option>' );