------------------------------------------------------------
revno: 10655
committer: Morten Olav Hansen <[email protected]>
branch nick: dhis2
timestamp: Mon 2013-04-22 12:48:12 +0700
message:
properly unescape field.values (fixes optionset encoding bug)
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2013-04-19 13:42:19 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2013-04-22 05:48:12 +0000
@@ -730,7 +730,7 @@
var field = $('#' + fieldId);
if ( field ) {
- field.val( obj.values[key].value );
+ field.val( decodeURI( obj.values[key].value ) );
}
});
}
@@ -809,7 +809,7 @@
var field = $('#' + fieldId);
if ( field ) {
- field.val( value.value );
+ field.val( decodeURI( value.value ));
}
} );
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp