← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5678: Visualizer GUI bug fixed.

 

Merge authors:
  Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 5678 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2012-01-08 22:03:39 -0600
message:
  Visualizer GUI bug fixed.
modified:
  dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.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-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js'
--- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js	2011-12-25 23:15:15 +0000
+++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js	2011-12-27 03:34:47 +0000
@@ -1062,6 +1062,9 @@
                         this.filter.dimension = f.filter;
                         DV.cmp.settings.filter.setValue(DV.conf.finals.dimension[this.filter.dimension].value);
                         
+                        DV.store.indicator.selected.removeAll();                        
+                        DV.store.dataelement.selected.removeAll();                        
+                        
                         if (f.indicators) {
                             var records = [];
                             for (var i = 0; i < f.indicators.length; i++) {
@@ -1069,7 +1072,6 @@
                                 this.indicatorIds.push(f.indicators[i].internalId);
                                 records.push({id: f.indicators[i].internalId, s: DV.util.string.getEncodedString(f.indicators[i].shortName), name: DV.util.string.getEncodedString(f.indicators[i].shortName), parent: null});
                             }
-                            DV.store.indicator.selected.removeAll();
                             DV.store.indicator.selected.add(records);
                             DV.util.store.addToStorage(DV.store.indicator.available, records);
                             DV.util.multiselect.filterAvailable(DV.cmp.dimension.indicator.available, DV.cmp.dimension.indicator.selected);
@@ -1081,7 +1083,6 @@
                                 this.dataelementIds.push(f.dataElements[i].internalId);
                                 records.push({id: f.dataElements[i].internalId, s: DV.util.string.getEncodedString(f.dataElements[i].shortName), name: DV.util.string.getEncodedString(f.dataElements[i].shortName), parent: null});
                             }
-                            DV.store.dataelement.selected.removeAll();
                             DV.store.dataelement.selected.add(records);
                             DV.util.store.addToStorage(DV.store.dataelement.available, records);
                             DV.util.multiselect.filterAvailable(DV.cmp.dimension.dataelement.available, DV.cmp.dimension.dataelement.selected);