← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11007: Disabled autocompleted fields of other program stage in entry form.

 

------------------------------------------------------------
revno: 11007
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-05-27 11:44:50 +0700
message:
  Disabled autocompleted fields of other program stage in entry form.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.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/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2013-05-23 02:42:12 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2013-05-27 04:44:50 +0000
@@ -882,7 +882,10 @@
             TOGGLE.init();
 
             jQuery( "#entryForm :input" ).each( function () {
-                if ( jQuery( this ).attr( 'options' ) != null && jQuery( this ).attr( 'options' ) == 'true' ) {
+                if ( jQuery( this ).attr( 'options' ) != null 
+					&& jQuery( this ).attr( 'options' ) == 'true' 
+					&& ( jQuery( this ).attr( 'disabled' ) == null  
+						|| jQuery( this ).attr( 'disabled' ) != 'disabled' ) ){
                     autocompletedField( jQuery( this ).attr( 'id' ) );
                 }
                 else if ( jQuery( this ).attr( 'username' ) != null && jQuery( this ).attr( 'username' ) == 'true' ) {