← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2414: Minor changed.

 

------------------------------------------------------------
revno: 2414
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2010-12-23 10:27:29 +0700
message:
  Minor changed.
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2010-12-21 07:10:25 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2010-12-23 03:27:29 +0000
@@ -675,10 +675,11 @@
 function getParamString( elementId, param )
 {
     var result = "";
+	var list = jQuery( "#" + elementId ).children();
 	
-	jQuery.each( jQuery( "#" + elementId ).children(), function( i, item ){
+	list.each( function( i, item ){
 		result += param + "=" + item.value;
-		result += (i < jQuery( "#" + elementId ).children().length-1) ? "&" : "";
+		result += (i < list.length-1) ? "&" : "";
 	});
 	
 	return result;