=== 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-07-22 09:24:53 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js 2013-07-29 09:28:14 +0000
@@ -293,7 +293,7 @@
+ '
'
+ ' | '
+ ''
- + ' | '
+ '/
'
- + '
'
+ + '
'
+ ' | '
+ ''
+ program_stage_SMS_reminder_form
@@ -327,6 +327,7 @@
+ ' |
';
jQuery('#programStageMessage').append( contend );
+ showHideUserGroup();
}
function removeTemplateMessageForm( rowId )
@@ -343,4 +344,15 @@
else{
enable('daysAllowedSendMessage' + index );
}
+}
+function showHideUserGroup()
+{
+ jQuery(".sendTo").each( function( i, item ){
+ var numb = i+1;
+ if( item.value == 5){
+ showById( 'tr'+numb );
+ }
+ else
+ hideById ( 'tr'+numb );
+ });
}
\ 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-07-19 06:04:09 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/updateProgramStageForm.js 2013-07-29 09:28:14 +0000
@@ -1,6 +1,7 @@
var duplicate = false;
jQuery( document ).ready( function()
{
+ showHideUserGroup();
validation( 'updateProgramStageForm', function( form ){
if( duplicate==true)
return false;
@@ -109,4 +110,15 @@
if(!flag) return option;
}
});
-});
\ No newline at end of file
+});
+function showHideUserGroup()
+{
+ jQuery(".sendTo").each( function( i, item ){
+ var numb = i+1;
+ if( item.value == 5){
+ showById( 'tr'+numb );
+ }
+ else
+ hideById ( 'tr'+numb );
+ });
+}
\ 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/updateProgramStageForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageForm.vm 2013-07-22 09:24:53 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageForm.vm 2013-07-29 09:28:14 +0000
@@ -4,9 +4,17 @@
program_stage_SMS_reminder_form += "";
#end
program_stage_SMS_reminder_form +="";
+
+function onchangeUserGroup( id )
+ {
+ var value = document.getElementById( 'sendTo'+id ).value;
+ hideById( 'tr'+id );
+ if ( value == 5) {
+ showById( 'tr'+id );
+ }
+ };
-
$i18n.getString( "edit_program_stage" )
$programStage.program.displayName
@@ -202,7 +210,7 @@
|
-
+
@@ -211,7 +219,7 @@
|
-
+
|
|