dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18258
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7630: Small changes in Nested function.
------------------------------------------------------------
revno: 7630
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-07-18 11:48:54 +0700
message:
Small changes in Nested function.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-07-13 02:46:02 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-07-18 04:48:54 +0000
@@ -209,7 +209,7 @@
params += dateOperator + "'" + item.value.toLowerCase() + "'";
}
else{
- params += htmlEncode( item.value.toLowerCase() );
+ params += htmlEncode( item.value.toLowerCase().replace(/^\s*/, "").replace(/\s*$/, "") );
}
}
})