dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33505
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17109: PT DV ER EV store sorting bug fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 17109 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-10-14 13:52:47 +0200
message:
PT DV ER EV store sorting bug fixed.
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/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-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2014-10-14 09:46:02 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2014-10-14 11:49:12 +0000
@@ -5792,7 +5792,7 @@
if (selected.length) {
var array = [];
Ext.Array.each(selected, function(item) {
- array.push({id: item, name: a.store.getAt(a.store.findExact('id', item)).data.name});
+ array.push(a.store.getAt(a.store.findExact('id', item)));
});
s.store.add(array);
}
@@ -5800,10 +5800,7 @@
};
web.multiSelect.selectAll = function(a, s, isReverse) {
- var array = [];
- a.store.each( function(r) {
- array.push({id: r.data.id, name: r.data.name});
- });
+ var array = a.store.getRange();
if (isReverse) {
array.reverse();
}
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js 2014-10-14 09:46:02 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js 2014-10-14 11:49:12 +0000
@@ -5448,7 +5448,7 @@
if (selected.length) {
var array = [];
Ext.Array.each(selected, function(item) {
- array.push({id: item, name: a.store.getAt(a.store.findExact('id', item)).data.name});
+ array.push(a.store.getAt(a.store.findExact('id', item)));
});
s.store.add(array);
}
@@ -5456,10 +5456,7 @@
};
web.multiSelect.selectAll = function(a, s, isReverse) {
- var array = [];
- a.store.each( function(r) {
- array.push({id: r.data.id, name: r.data.name});
- });
+ var array = a.store.getRange();
if (isReverse) {
array.reverse();
}
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js 2014-10-14 09:05:50 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js 2014-10-14 11:49:12 +0000
@@ -1903,7 +1903,7 @@
if (selected.length) {
var array = [];
Ext.Array.each(selected, function(item) {
- array.push({id: item, name: a.store.getAt(a.store.findExact('id', item)).data.name});
+ array.push(a.store.getAt(a.store.findExact('id', item)));
});
s.store.add(array);
}
@@ -1911,10 +1911,7 @@
};
web.multiSelect.selectAll = function(a, s, isReverse) {
- var array = [];
- a.store.each( function(r) {
- array.push({id: r.data.id, name: r.data.name});
- });
+ var array = a.store.getRange();
if (isReverse) {
array.reverse();
}
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js 2014-10-14 09:37:49 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js 2014-10-14 11:49:12 +0000
@@ -1969,7 +1969,7 @@
if (selected.length) {
var array = [];
Ext.Array.each(selected, function(item) {
- array.push({id: item, name: a.store.getAt(a.store.findExact('id', item)).data.name});
+ array.push(a.store.getAt(a.store.findExact('id', item)));
});
s.store.add(array);
}
@@ -1977,10 +1977,7 @@
};
web.multiSelect.selectAll = function(a, s, isReverse) {
- var array = [];
- a.store.each( function(r) {
- array.push({id: r.data.id, name: r.data.name});
- });
+ var array = a.store.getRange();
if (isReverse) {
array.reverse();
}
@@ -3080,13 +3077,14 @@
}
});
ns.app.stores.fixedPeriodAvailable = fixedPeriodAvailableStore;
+nissa1 = fixedPeriodAvailableStore;
fixedPeriodSelectedStore = Ext.create('Ext.data.Store', {
- fields: ['id', 'name'],
+ fields: ['id', 'name', 'index'],
data: []
});
ns.app.stores.fixedPeriodSelected = fixedPeriodSelectedStore;
-
+nissa2 = fixedPeriodSelectedStore;
chartStore = Ext.create('Ext.data.Store', {
fields: ['id', 'name', 'lastUpdated', 'access'],
proxy: {