← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6022: disable completeness if dataset is locked

 

------------------------------------------------------------
revno: 6022
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-02-17 19:39:25 +0700
message:
  disable completeness if dataset is locked
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	2012-02-17 12:29:45 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2012-02-17 12:39:25 +0000
@@ -789,16 +789,16 @@
     dataEntryFormIsLoaded = true;
     hideLoader();
 
-    $( '#completenessDiv' ).css( 'display', 'block' );
-
     if( getLockStatus() )
     {
         $( '#contentDiv :input' ).attr( 'disabled', true );
         $( '#currentDataElement' ).html( i18n_dataset_is_locked );
+        $( '#completenessDiv' ).css( 'display', 'none' );
     }
     else
     {
         $( '#contentDiv :input' ).removeAttr( 'disabled' );
+        $( '#completenessDiv' ).css( 'display', 'block' );
         $( '#currentDataElement' ).html( i18n_no_dataelement_selected );
     }