dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31436
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16009: Fixed bug - Error when to type a certain character in Post comment field of program-stage entry f...
------------------------------------------------------------
revno: 16009
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-07-08 13:18:14 +0800
message:
Fixed bug - Error when to type a certain character in Post comment field of program-stage entry form.
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 2014-06-24 12:38:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2014-07-08 05:18:14 +0000
@@ -1647,9 +1647,9 @@
}
function commentKeyup() {
var commentInput = byId('commentInput');
- while ($(commentInput).outerHeight() < commentInput.scrollHeight
+ if ($(commentInput).outerHeight() < commentInput.scrollHeight
+ parseFloat($(commentInput).css("borderTopWidth"))
- + parseFloat($(commentInput).css("borderBottomWidth"))) {
+ + parseFloat($(commentInput).css("borderBottomWidth")) - 1 ) {
$(commentInput).height($(commentInput).height() + 10);
}
}