dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12168
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3676: small optimization for dataElement/indicator initial filtering
------------------------------------------------------------
revno: 3676
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-05-19 19:12:28 +0200
message:
small optimization for dataElement/indicator initial filtering
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/editDataSet.vm
--
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-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/editDataSet.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/editDataSet.vm 2011-05-19 17:07:20 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/editDataSet.vm 2011-05-19 17:12:28 +0000
@@ -1,19 +1,21 @@
<script type="text/javascript" src="javascript/editDataSet.js"></script>
<script type="text/javascript">
function getRemoveDataElementsList() {
- var list = [];
- jQuery("#dataElementsSelectedList").find("option").each(function() {
- list.push( +jQuery(this).attr("value") );
- });
+ var list = [
+ #foreach ( $availableDataElement in $dataElements )
+ $availableDataElement.id,
+ #end
+ ];
return list;
}
function getRemoveIndicatorsList() {
- var list = [];
- jQuery("#indicatorsSelectedList").find("option").each(function() {
- list.push( +jQuery(this).attr("value") );
- });
+ var list = [
+ #foreach ( $availableIndicator in $indicators )
+ $availableIndicator.id,
+ #end
+ ];
return list;
}