← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11086: Fixed bug - Disable List events button if no program selected in program-tracking module.

 

------------------------------------------------------------
revno: 11086
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-05-29 22:42:21 +0700
message:
  Fixed bug - Disable List events button if no program selected in program-tracking module.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/searchPatientCriteria.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/webapp/dhis-web-caseentry/searchPatientCriteria.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/searchPatientCriteria.vm	2013-05-29 08:36:29 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/searchPatientCriteria.vm	2013-05-29 15:42:21 +0000
@@ -23,8 +23,12 @@
 			<select id='programIdAddPatient' name='programIdAddPatient' onchange='enableBtn();'>
 				#if($programs.size()==0)
 				<option value="">[$i18n.getString( "none_program" )]</option>
+				<script>disable('listPatientBtn')</script>
 				#elseif($programs.size()>1)
 				<option value='' type='2' id='emptyProgramOption'>[$i18n.getString("please_select")]</option>
+				<script>disable('listPatientBtn')</script>
+				#else
+				<script>enable('listPatientBtn')</script>
 				#end
 				#foreach($program in $programs)
 					<option value="$program.id" type='$program.type'>$program.displayName</option>