dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16048
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5984: minor fixes
------------------------------------------------------------
revno: 5984
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-02-16 19:25:39 +0700
message:
minor fixes
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-16 12:07:10 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2012-02-16 12:25:39 +0000
@@ -771,20 +771,16 @@
dataEntryFormIsLoaded = true;
hideLoader();
- var locked = getLockStatus();
-
- if(locked)
- {
- $("#contentDiv").find("input").attr("disabled", true)
- $("#completenessDiv").find("input").attr("disabled", true)
- }
- else
- {
- $("#contentDiv").find("input").removeAttr("disabled");
- $("#completenessDiv").find("input").removeAttr("disabled");
- }
-
$( '#completenessDiv' ).css( 'display', 'block' );
+
+ if( getLockStatus() )
+ {
+ $("#contentDiv :input").attr("disabled", true);
+ }
+ else
+ {
+ $("#contentDiv :input").removeAttr("disabled");
+ }
}
function valueFocus( e )