← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11805: Exception thrown when to update a program-stage with template messages.

 

------------------------------------------------------------
revno: 11805
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-08-27 10:49:43 +0700
message:
  Exception thrown when to update a program-stage with template messages.
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramForm.vm
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.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-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramForm.vm	2013-08-15 04:12:11 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramForm.vm	2013-08-27 03:49:43 +0000
@@ -89,14 +89,7 @@
 	
 	checkValueIsExist( "name", "validateProgram.action" );	
 });
-	function onchangeUserGroup( id )
-	{
-		var value = document.getElementById( 'sendTo'+id ).value;
-		hideById( 'tr'+id );
-		if ( value == 5) {
-			showById( 'tr'+id );
-		}
-	};
+	
 </script>
 
 <h3>$i18n.getString( "create_new_program" )</h3>

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js	2013-08-01 03:48:34 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js	2013-08-27 03:49:43 +0000
@@ -358,4 +358,13 @@
 		else
 			hideById ( 'tr'+numb );
 	});
-}
\ No newline at end of file
+}
+
+function onchangeUserGroup( id )
+{
+	var value = document.getElementById( 'sendTo'+id ).value;
+	hideById( 'tr'+id );
+	if ( value == 5) {
+		showById( 'tr'+id );
+	}
+};
\ No newline at end of file

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.js	2013-08-01 03:36:44 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.js	2013-08-27 03:49:43 +0000
@@ -111,23 +111,3 @@
 		}
 	});
 });
-function showHideUserGroup()
-{
-	jQuery(".sendTo").each( function( i, item ){
-		var numb = i+1;
-		if( item.value == 5){
-			showById( 'tr'+numb );
-		}
-		else
-			hideById ( 'tr'+numb );
-	});
-}
-
-function onchangeUserGroup( id )
-{
-	var value = document.getElementById( 'sendTo'+id ).value;
-	hideById( 'tr'+id );
-	if ( value == 5) {
-		showById( 'tr'+id );
-	}
-};
\ No newline at end of file