← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12208: Minor

 

------------------------------------------------------------
revno: 12208
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-09-23 11:57:48 +0200
message:
  Minor
modified:
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.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-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2013-09-23 09:50:17 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2013-09-23 09:57:48 +0000
@@ -1096,8 +1096,6 @@
 	    		$( '#completenessDiv' ).show();
 	    	}
 	    	
-	    	$( '.indicator' ).attr( 'readonly', 'readonly' );
-	    	
 	        // Set data values, works for selects too as data value=select value
 
 	        $.safeEach( json.dataValues, function( i, value )
@@ -1189,6 +1187,10 @@
                 $( '#contentDiv input' ).css( 'backgroundColor', '#eee' );
                 $( '.sectionFilter' ).css( 'backgroundColor', '#fff' );
             }
+        },
+        complete: function()
+        {
+	    	$( '.indicator' ).attr( 'readonly', 'readonly' );	    	
         }
 	} );
 }