------------------------------------------------------------
revno: 11643
committer: Lars Helge Ă˜verland <[email protected]>
branch nick: dhis2
timestamp: Mon 2013-08-12 21:58:08 +0200
message:
Data entry, true only entry fields, sending 'true' instead of 'checked' to
the server for checked fields
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/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-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js 2013-08-12 19:34:06 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js 2013-08-12 19:58:08 +0000
@@ -230,7 +230,9 @@
{
fieldId = '#' + fieldId;
- var value = $( fieldId ).attr( 'checked' );
+ var value = $( fieldId ).is( ':checked' );
+
+ value = ( value == true) ? value : undefined; // Send nothing if un-ticked
$( fieldId ).css( 'background-color', COLOR_YELLOW );
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp