← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9984: Remove unused js-methods in program tracking module.

 

------------------------------------------------------------
revno: 9984
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-03-05 18:36:12 +0700
message:
  Remove unused js-methods in program tracking module.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js	2013-03-05 08:35:37 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js	2013-03-05 11:36:12 +0000
@@ -126,24 +126,6 @@
 		});
 }
 
-function eventFlowToggle( programInstanceId )
-{
-	jQuery("#tb_" + programInstanceId + " .stage-object").each( function(){
-		var programStageInstance = this.id.split('_')[1];
-		jQuery('#arrow_' + programStageInstance ).toggle();
-		jQuery('#ps_' + programStageInstance ).toggle();
-		jQuery(this).removeClass("stage-object-selected");
-	});
-		
-	if( jQuery("#tb_" + programInstanceId + " .searched").length>0)
-	{	
-		var id = jQuery("#tb_" + programInstanceId + " .searched").attr('id').split('_')[1];
-		showById("arrow_" + id);
-		showById("ps_" + id );
-	}
-	resize();
-}
-
 // --------------------------------------------------------------------
 // Send SMS 
 // --------------------------------------------------------------------
@@ -258,82 +240,6 @@
 function entryFormContainerOnReady(){}
 
 // --------------------------------------------------------------------
-// Cosmetic UI
-// --------------------------------------------------------------------
-
-function reloadRecordList()
-{
-	var listAll = getFieldValue('listAll');
-	var startDate = getFieldValue('startDueDate');
-	var endDate = getFieldValue('endDueDate');
-	var statusEvent = getFieldValue('statusEvent');
-	if( listAll == 'true' )
-	{
-		var date = new Date();
-		var d = date.getDate() - 1;
-		var m = date.getMonth();
-		var y1 = date.getFullYear() - 100;
-		var y2 = date.getFullYear();
-		startDate = jQuery.datepicker.formatDate( dateFormat, new Date(y1, m, d) );
-		endDate = jQuery.datepicker.formatDate( dateFormat, new Date(y2, m, d) );
-		status = 4;
-	}
-	
-	var paddingIndex = 1;
-	jQuery("#patientList .stage-object").each( function(){
-		var id = this.id.split('_')[1];
-		var dueDate = jQuery(this).attr('dueDate');
-		var status = jQuery(this).attr('status');
-		var programInstanceId = jQuery(this).attr('programInstanceId');
-		if( dueDate >= startDate && dueDate <= endDate && statusEvent == status )
-		{
-			if( jQuery("#tb_" + programInstanceId + " .searched").length > 0 ){
-				hideById('arrow_' + id );
-				hideById("ps_" + id );
-			}
-			else
-			{
-				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");
-		}
-		else
-		{
-			hideById('arrow_' + id );
-			hideById('ps_' + id );
-		}
-	});
-	
-	jQuery("[id^=arrow_].displayed" ).each( function(){
-		var id = this.id.split('_')[1];
-		var index = eval(jQuery("#ps_" + id ).attr("index"));
-		if( index<paddingIndex){
-			var paddingLeft = ( paddingIndex - index ) * 20;
-			jQuery(this).css("padding-left", paddingLeft + "px");
-		}
-	});
-}
-
-function reloadOneRecord( programInstanceId )
-{
-	if(jQuery("#tb_" + programInstanceId + " .searched").length == 0 ){
-		var total = eval(getInnerHTML('totalTd')) - 1;
-		setInnerHTML('totalTd', total)
-		hideById("event_" + programInstanceId );
-	}
-	else
-	{
-		var firstSearched = jQuery("#tb_" + programInstanceId + " .searched:first");
-		firstSearched.show();
-		jQuery("#tb_" + programInstanceId + " [name^=arrow_]").show();
-	}
-}
-
-// --------------------------------------------------------------------
 // Show main form
 // --------------------------------------------------------------------