dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24671
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12134: Data entry, fixed bug, grey fields in sections not working properly. The solution for data lockin...
------------------------------------------------------------
revno: 12134
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-09-18 11:45:24 +0200
message:
Data entry, fixed bug, grey fields in sections not working properly. The solution for data locking messed up greyed fields, using readonly attribute for data locking for now.
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-08-25 20:46:47 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2013-09-18 09:45:24 +0000
@@ -1082,7 +1082,7 @@
{
if ( json.locked )
{
- $( '#contentDiv input').attr( 'disabled', 'disabled' );
+ $( '#contentDiv input').attr( 'readonly', 'readonly' );
$( '.entryoptionset').autocomplete( 'disable' );
$( '.sectionFilter').removeAttr( 'disabled' );
$( '#completenessDiv' ).hide();
@@ -1091,8 +1091,7 @@
else
{
$( '.entryoptionset' ).autocomplete( 'enable' );
- $( '#contentDiv input' ).removeAttr( 'disabled' );
- $( '#contentDiv input' ).css( 'backgroundColor', '#fff' );
+ $( '#contentDiv input' ).removeAttr( 'readonly' );
$( '#completenessDiv' ).show();
}