=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/caseAggregationForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/caseAggregationForm.vm 2013-02-07 13:44:38 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/caseAggregationForm.vm 2013-03-08 14:07:03 +0000 @@ -100,8 +100,8 @@     - - + +     === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js 2013-02-07 13:44:38 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js 2013-03-08 14:07:03 +0000 @@ -249,6 +249,12 @@ getConditionDescription(); } +function insertBoolValue( value ) +{ + insertTextCommon("aggregationCondition", " ='" + value + "' " ); + getConditionDescription(); +} + // ----------------------------------------------------------------------------- // Remove Case Aggregation Condition // ----------------------------------------------------------------------------- === 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 2013-03-08 13:56:13 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientAttribute.js 2013-03-08 14:07:03 +0000 @@ -121,20 +121,3 @@ return "[ - ]"; } } - -function getConditionDescription() -{ - $.postUTF8( 'getCaseAggregationDescription.action', - { - condition:getFieldValue('expression') - },function(html) - { - setInnerHTML('expDescription', html); - }); -} - -function insertOperator( value ) -{ - insertTextCommon('expression', ' ' + value + ' ' ); - getConditionDescription(); -} === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updatePatientAttributeForm.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updatePatientAttributeForm.js 2012-12-21 09:23:20 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updatePatientAttributeForm.js 2013-03-08 14:07:03 +0000 @@ -16,9 +16,6 @@ }); ATTRIBUTE_OPTION.selectValueType(byId("valueType")); - if( getFieldValue('expression') != "" ){ - getConditionDescription(); - } checkValueIsExist( "name", "validatePatientAttribute.action", {id:getFieldValue('id')}); }); \ No newline at end of file