← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12788: Fixed bug - Cannot create a repeatable event many times in the same time in entry form.

 

------------------------------------------------------------
revno: 12788
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-10-22 10:50:27 +0700
message:
  Fixed bug - Cannot create a repeatable event many times in the same time in entry form.
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	2013-10-16 11:03:45 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js	2013-10-22 03:50:27 +0000
@@ -702,7 +702,7 @@
 			// Disable Create new event button in the entry form if doesn't have any stage for register
 			flag = true;
             $('#repeatableProgramStage_' + programInstanceId + " option ").each(function(){
-				if( $(this).attr('localid')== programStageId){
+				if( $(this).attr('localid')== programStageId && $(this).attr('repeatable')=='false'){
                     $(this).css("display","none");
 				}
 				if( $(this).css('display')!= "none"){