=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/interpretation.js' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/interpretation.js 2012-05-31 21:51:26 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/interpretation.js 2012-09-20 12:00:28 +0000 @@ -19,6 +19,8 @@ { var text = $( "#commentArea" + uid ).val(); + $( "#commentArea" + uid ).val( "" ); + var url = "../api/interpretations/" + uid + "/comment"; var created = getCurrentDate(); @@ -37,8 +39,6 @@ "
${text}<\/div>"; $.tmpl( template, { "userId": currentUser.id, "userName": currentUser.name, created: created, text: text } ).appendTo( "#comments" + uid ); - - $( "#commentArea" + uid ).val( "" ); } } ); }