=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientAttribute.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientAttribute.js 2010-10-05 11:58:15 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientAttribute.js 2011-04-27 05:10:13 +0000 @@ -76,16 +76,13 @@ if( jQuery(this_).siblings("input").attr("name") != "attrOptions") { jQuery.get("removePatientAttributeOption.action?id="+optionId,function(data){ - var type = jQuery(data).find("message").attr("type"); - alert(type); - if( type == "success") + if( data.response == "success") { - alert("success"); jQuery(this_).parent().parent().remove(); - alert(jQuery(data).text()); + showSuccessMessage( data.message ); }else { - alert(jQuery(data).text()); + showErrorMessage( data.message ); } }); }else