dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #02477
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 822: Fixed [Bug 425568] [NEW] Filtered for DataSet shouldn't have been refreshed
------------------------------------------------------------
revno: 822
author: Hieu Dang Duy <hieu.hispvietnam@xxxxxxxxx>
committer: hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Tue 2009-10-06 15:16:57 +0700
message:
Fixed [Bug 425568] [NEW] Filtered for DataSet shouldn't have been refreshed
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/dataSet.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-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/dataSet.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/dataSet.js 2009-03-20 20:33:48 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/javascript/dataSet.js 2009-10-06 08:16:57 +0000
@@ -245,17 +245,21 @@
while ( list.selectedIndex != -1 )
{
+ var selectedList = byId( 'selectedList' );
var id = list.options[list.selectedIndex].value;
-
- list.options[list.selectedIndex].selected = false;
-
- dataSetMembers[id] = availableDataElements[id];
+
+ dataSetMembers[id] = availableDataElements[id];
+
+ addOptionToList( selectedList, id, dataSetMembers[id] );
+
+ list.remove( list.selectedIndex );
delete availableDataElements[id];
}
- filterDataSetMembers();
- filterAvailableDataElements();
+ //Not filter anymore
+ //filterDataSetMembers();
+ //filterAvailableDataElements();
}
function removeDataSetMembers()
@@ -264,15 +268,19 @@
while ( list.selectedIndex != -1 )
{
+ var availableList = byId( 'availableList' );
var id = list.options[list.selectedIndex].value;
- list.options[list.selectedIndex].selected = false;
-
availableDataElements[id] = dataSetMembers[id];
+
+ addOptionToList( availableList, id, availableDataElements[id] );
+
+ list.remove( list.selectedIndex );
delete dataSetMembers[id];
}
- filterDataSetMembers();
- filterAvailableDataElements();
+ //Not filter anymore
+ //filterDataSetMembers();
+ //filterAvailableDataElements();
}