------------------------------------------------------------
revno: 2414
committer: Hieu <[email protected]>
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;
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp