dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16187
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6089: (patient) Insert operator = when selecting an option-set valuein Aggregation Query Builder.
------------------------------------------------------------
revno: 6089
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-02-23 10:01:26 +0700
message:
(patient) Insert operator = when selecting an option-set valuein Aggregation Query Builder.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.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-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js 2012-02-14 03:37:23 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js 2012-02-23 03:01:26 +0000
@@ -242,9 +242,10 @@
for( var i=0; i< arrValues.length; i++ )
{
var option = document.createElement("option");
- option.value = "'" + arrValues[i] + "'";
- option.text = arrValues[i];
- option.title = arrValues[i];
+ var value = jQuery.trim( arrValues[i] );
+ option.value = "'=" + value + "'";
+ option.text = value;
+ option.title = value;
suggestedValueSelector.add(option, null);
}