← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8159: Allow many scheduled visits per day per person-programm.

 

------------------------------------------------------------
revno: 8159
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-09-20 18:08:58 +0700
message:
  Allow many scheduled visits per day per person-programm.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.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/commons.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js	2012-09-20 07:26:20 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js	2012-09-20 11:08:58 +0000
@@ -800,17 +800,6 @@
 function saveDueDate( programInstanceId, programStageInstanceId, programStageInstanceName )
 {
 	var field = document.getElementById( 'value_' + programStageInstanceId + '_date' );
-	var flag = false;
-	jQuery('#flow_' + programInstanceId + ' .stage-object').each(function(){
-		var dueDate = jQuery(this).attr('dueDate');
-		var boxId = "ps_" + programStageInstanceId;
-		if( dueDate == field.value && this.id != boxId ){
-			showWarningMessage(i18n_the_date_is_scheduled);
-			flag = true;
-		}
-	})
-	if(flag) return;
-	
 	var dateOfIncident = new Date( byId('dateOfIncident').value );
 	var dueDate = new Date(field.value);