dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15006
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5247: Bug fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 5247 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-11-30 17:44:00 +0100
message:
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-11-30 16:09:37 +0000
+++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js 2011-11-30 16:43:20 +0000
@@ -250,11 +250,11 @@
getNames: function(exception) {
var a = [];
DV.cmp.dimension.indicator.selected.store.each( function(r) {
- a.push(DV.util.chart.getEncodedSeriesName(r.data.shortName));
+ a.push(DV.util.string.getEncodedString(r.data.shortName));
});
if (DV.cmp.dimension.dataelement.selected.store) {
DV.cmp.dimension.dataelement.selected.store.each( function(r) {
- a.push(DV.util.chart.getEncodedSeriesName(r.data.shortName));
+ a.push(DV.util.string.getEncodedString(r.data.shortName));
});
}
if (exception && !a.length) {
@@ -282,7 +282,7 @@
Ext.Array.each(cmp, function(item) {
if (item.getValue()) {
Ext.Array.each(DV.init.system.periods[item.paramName], function(item) {
- a.push(DV.util.chart.getEncodedSeriesName(item.name));
+ a.push(DV.util.string.getEncodedString(item.name));
});
}
});
@@ -325,7 +325,7 @@
treepanel.selectRoot();
}
Ext.Array.each(selection, function(r) {
- a.push(DV.util.chart.getEncodedSeriesName(r.data.text));
+ a.push(DV.util.string.getEncodedString(r.data.text));
});
if (exception && !a.length) {
alert('No organisation units selected');
@@ -335,9 +335,6 @@
}
},
chart: {
- getEncodedSeriesName: function(text) {
- return text.replace(/\./g,'');
- },
getLegend: function(len) {
len = len ? len : DV.state.series.names.length;
return {
@@ -519,6 +516,11 @@
getChartAxisFormatRenderer: function() {
return this.allValuesAreIntegers(DV.value.values) ? '0' : '0.0';
}
+ },
+ string: {
+ getEncodedString: function(text) {
+ return text.replace(/\./g,'');
+ }
}
};
@@ -723,10 +725,10 @@
}
var storage = Ext.Object.merge(DV.store[i].available.storage, DV.store[d].available.storage);
-
+
Ext.Array.each(DV.value.values, function(item) {
- item[DV.conf.finals.dimension.data.value] = storage[item.d].name;
- item[DV.conf.finals.dimension.period.value] = DV.util.dimension.period.getNameById(item.p);
+ item[DV.conf.finals.dimension.data.value] = DV.util.string.getEncodedString(storage[item.d].name);
+ item[DV.conf.finals.dimension.period.value] = DV.util.string.getEncodedString(DV.util.dimension.period.getNameById(item.p));
item[DV.conf.finals.dimension.organisationunit.value] = DV.util.getCmp('treepanel').store.getNodeById(item.o).data.text;
item.v = parseFloat(item.v);
});