dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22227
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10655: properly unescape field.values (fixes optionset encoding bug)
------------------------------------------------------------
revno: 10655
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
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 ));
}
} );