dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36817
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18827: minor fix
------------------------------------------------------------
revno: 18827
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-04-08 17:10:30 +0700
message:
minor fix
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 2015-04-08 09:55:13 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2015-04-08 10:10:30 +0000
@@ -226,6 +226,12 @@
dhis2.de.setMetaDataLoaded();
organisationUnitSelected( ids, names );
+ if( ids && ids[0] ) {
+ dhis2.de.fetchDataSets(ids[0]).done(function() {
+ selection.responseReceived();
+ })
+ }
+
$('#orgUnitTree').on('dhis2.ouwt.childrenLoaded', function(e, ou) {
dhis2.de.fetchDataSets(ou).done(function() {
selection.responseReceived();