dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27802
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13846: Minor
------------------------------------------------------------
revno: 13846
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-01-24 17:39:49 +0200
message:
Minor
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.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-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.js 2014-01-24 15:20:17 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/history.js 2014-01-24 15:39:49 +0000
@@ -200,13 +200,12 @@
dhis2.de.insertCommentOptionSet = function( optionSetId )
{
$optSet = $( '#commentOptionSet' );
-
- $optSet.change( function() {
- $( '#commentTextArea' ).val( $optSet.val() );
- $optSet.val( '' );
- } );
-
+
if ( optionSetId ) {
+ $optSet.change( function() {
+ $( '#commentTextArea' ).val( $optSet.val() );
+ } );
+
$( '#commentOptionDiv' ).show();
dhis2.de.autocompleteOptionSetField( 'commentOptionSet', optionSetId );
}