← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3744: Fix bug: Cannot add/update category combo.

 

------------------------------------------------------------
revno: 3744
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-05-26 10:35:47 +0700
message:
  Fix bug: Cannot add/update  category combo.
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/categoryCombo.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/categoryCombo.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/categoryCombo.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/categoryCombo.js	2011-05-26 03:35:47 +0000
@@ -33,9 +33,13 @@
 	var url = "validateDataElementCategoryCombo.action?";
 		url += getParamString( "selectedList", "selectedCategories" );
 
-	jQuery.postJSON( url, function( json )
+	jQuery.postJSON( url,{}, function( json )
 	{
-		if( json.response == 'success' ) form.submit();
+		if( json.response == 'success' ) 
+		{
+			form.submit();
+		}
 		else markInvalid( 'selectedCategories', json.message );
 	});
+	
 }