dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36893
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18869: add new variable in form.js (dhis2.de.multiOrganisationUnitEnabled)
------------------------------------------------------------
revno: 18869
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-04-10 10:20:41 +0700
message:
add new variable in form.js (dhis2.de.multiOrganisationUnitEnabled)
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 10:59:12 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2015-04-10 03:20:41 +0000
@@ -74,6 +74,9 @@
// Indicates whether current form is multi org unit
dhis2.de.multiOrganisationUnit = false;
+// Indicates whether multi org unit is enabled on instance
+dhis2.de.multiOrganisationUnitEnabled = false;
+
// "organisationUnits" object inherited from ouwt.js
// Constants
@@ -234,6 +237,7 @@
async: false,
type: 'GET',
success: function( data ) {
+ dhis2.de.multiOrganisationUnitEnabled = data;
selection.setIncludeChildren(data);
}
});