=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2013-09-06 15:53:07 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2013-09-07 12:32:55 +0000 @@ -627,8 +627,8 @@ mark_risk = Mark risk save_comment = Save comment program_enrollment = Program enrollment -stored_by = Stored by -stored_date = Stored date +updated_by = Updated by +updated_date = Updated date marked = Marked user_name = User name program_stage_completeness = Program Stage Completeness @@ -678,4 +678,6 @@ show_data = Show data name_in_use = Name is in use incomplete_confirm_message = Are you sure this event is incompleted? -non_value = No value \ No newline at end of file +non_value = No value +update_comment = Update comment +update_success = Update successfully \ No newline at end of file === 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 2013-09-06 09:06:36 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-09-07 12:32:55 +0000 @@ -2239,7 +2239,15 @@ }, function( json ) { - $( '#comment' ).css( 'background-color', SUCCESS_COLOR ); + $( '#comment' ).css( 'background-color', SUCCESS_COLOR ); + if(getFieldValue('comment')!=''){ + setFieldValue('updateCommentBtn',i18n_update_comment); + showSuccessMessage(i18n_update_success); + } + else{ + setFieldValue('updateCommentBtn',i18n_save_comment); + showSuccessMessage(i18n_save_success); + } }); } === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2013-09-06 09:06:36 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2013-09-07 12:32:55 +0000 @@ -319,4 +319,9 @@ var i18n_this_field_is_required = '$encoder.jsEscape( $i18n.getString( "this_field_is_required" ) , "'" )'; var i18n_comment = '$encoder.jsEscape( $i18n.getString( "comment" ) , "'")'; var i18n_message = '$encoder.jsEscape( $i18n.getString( "message" ) , "'")'; + var i18n_save_success = '$encoder.jsEscape( $i18n.getString( "save_success" ) , "'")'; + var i18n_update_comment = '$encoder.jsEscape( $i18n.getString( "update_comment" ) , "'")'; + var i18n_save_comment = '$encoder.jsEscape( $i18n.getString( "save_comment" ) , "'")'; + var i18n_update_success = '$encoder.jsEscape( $i18n.getString( "update_success" ) , "'")'; + var i18n_save_success = '$encoder.jsEscape( $i18n.getString( "save_success" ) , "'")'; \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/visitSchedule.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/visitSchedule.vm 2013-08-05 07:30:57 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/visitSchedule.vm 2013-09-07 12:32:55 +0000 @@ -23,9 +23,11 @@