dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35788
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18322: ER aggregation types, work in progress.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 18322 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-02-18 15:55:55 +0100
message:
ER aggregation types, work in progress.
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/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 2015-02-18 12:49:05 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2015-02-18 14:53:55 +0000
@@ -1343,7 +1343,7 @@
addDimension = function(record, store, excludedStores) {
var store = dimensionStoreMap[record.id] || store || filterStore;
- if (!hasDimension(record.id, excludedStores)) {
+ if (!hasDimension(record.id, excludedStores) && record.id !== value.getValue()) {
store.add(record);
}
};
@@ -4103,10 +4103,13 @@
element.name = element.name || element.displayName;
recordMap[element.id] = element;
- ux = addUxFromDataElement(element);
+ // add ux if not selected as value
+ if (element.id !== aggWindow.value.getValue()) {
+ ux = addUxFromDataElement(element);
- if (layout) {
- ux.setRecord(element);
+ if (layout) {
+ ux.setRecord(element);
+ }
}
store = Ext.Array.contains(includeKeys, element.type) || element.optionSet ? aggWindow.rowStore : aggWindow.fixedFilterStore;
@@ -6110,7 +6113,7 @@
for (var i = 0, el; i < masks.length; i++) {
el = Ext.get(masks[i]);
-console.log(el.getWidth(), Ext.getBody().getWidth());
+
if (el.getWidth() == Ext.getBody().getWidth()) {
el.on('click', function() {
if (w.hideOnBlur) {