← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4845: Disable Register Event tab if no have any single-event programs.

 

------------------------------------------------------------
revno: 4845
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-10-06 12:02:40 +0700
message:
  Disable Register Event tab if no have any single-event programs.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm


--
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/resources/org/hisp/dhis/caseentry/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties	2011-10-05 15:38:46 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties	2011-10-06 05:02:40 +0000
@@ -409,7 +409,7 @@
 search_by_program 												= Search by Program
 list_patients_by_program 										= List Beneficiaries by Program
 program_unenrollment_management 								= Program Un-Enrollment Management
-enrol_success 													= Beneficiary successfully enrolled
+enrol_success 													= Beneficiary enrolled successfully
 advanced_search 												= Advanced search
 duplicated_patient_list 										= Duplicated patient list
 specfiy_birth_date_or_age 										= Specfiy birth date or age

=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm	2011-10-06 04:38:13 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm	2011-10-06 05:02:40 +0000
@@ -95,12 +95,16 @@
 			datePickerValid( 'dateOfIncident' );
 			
 			$( "#tabs" ).tabs( "option", "selected", 0 );
-			$('#tabs').bind('tabsselect', function(event, ui) {
-				if( ui.index == 1 )
-				{
-					showSelectedDataRecoding( getFieldValue('patientId') );
-				}
-			});
+			#if($registerEvent == 'true')
+				$('#tabs').bind('tabsselect', function(event, ui) {
+					if( ui.index == 1 )
+					{
+						showSelectedDataRecoding( getFieldValue('patientId') );
+					}
+				});
+			#else
+				$("#tabs").tabs("option", "disabled", [1]);
+			#end
 		});
 	
 </script>