=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm 2012-11-01 06:22:35 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm 2012-11-16 05:20:34 +0000 @@ -36,7 +36,7 @@ » #set( $programStageInstances = $programInstance.programStageInstances ) - +
@@ -47,7 +47,9 @@ #set( $flag = "false" ) + #set( $idx = 0) #foreach( $programStageInstance in $programStageInstances ) + #set( $idx = $idx + 1)
#set($title="") @@ -72,6 +74,7 @@ reportDateDes="$programStageInstance.programStage.reportDateDescription" dueDate="$format.formatDate( $programStageInstance.dueDate )" status='$programStageInstance.getEventStatus()' + index="$idx" class="stage-object" title="$title" value="$programStageInstance.programStage.name $valueDate" === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2012-11-15 15:25:18 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2012-11-16 05:20:34 +0000 @@ -247,6 +247,7 @@ var startDate = getFieldValue('startDueDate'); var endDate = getFieldValue('endDueDate'); var arrStatus = getFieldValue('statusEvent').split('_'); + var paddingIndex = 1; jQuery("#patientList .stage-object").each( function(){ var id = this.id.split('_')[1]; @@ -256,6 +257,14 @@ if( dueDate >= startDate && dueDate <= endDate && jQuery.inArray(statusEvent, arrStatus) > -1) { + if( jQuery("#tb_" + programInstanceId + " .searched").length == 0 ) + { + jQuery("#arrow_" + id ).addClass("displayed"); + var index = eval(jQuery("#ps_" + id ).attr("index")); + if( paddingIndex < index ){ + paddingIndex = index; + } + } jQuery("#ps_" + id ).addClass("stage-object-selected searched"); } hideById('arrow_' + id ); @@ -272,6 +281,11 @@ firstEvent.show(); var id = firstEvent.attr("id").split('_')[1]; showById('arrow_' + id ); + var index = firstEvent.attr("index"); + if( index +