dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35479
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18158: DV set fav selection when no data.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 18158 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-02-03 09:46:30 +0100
message:
DV set fav selection when no data.
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/core.js
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/chart.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-01-28 23:00:57 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2015-02-03 08:30:32 +0000
@@ -6367,8 +6367,8 @@
});
};
- web.report.getData = function(view, isUpdateGui) {
- var paramString = web.analytics.getParamString(view);
+ web.report.getData = function(layout, isUpdateGui) {
+ var paramString = web.analytics.getParamString(layout);
// show mask
web.mask.show(ns.app.centerRegion);
@@ -6412,7 +6412,7 @@
ns.app.paramString = paramString;
- web.report.createReport(view, response, isUpdateGui);
+ web.report.createReport(layout, response, isUpdateGui);
}
});
};
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/core.js 2015-01-29 16:31:21 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/core.js 2015-02-03 08:44:31 +0000
@@ -656,7 +656,7 @@
console.log('Response: no valid headers');
return;
}
-
+
if (!(Ext.isArray(config.rows) && config.rows.length > 0)) {
alert('No values found');
return;
=== 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 2015-01-28 23:00:57 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js 2015-02-03 08:30:32 +0000
@@ -2367,9 +2367,11 @@
},
disableCaching: false,
failure: function(r) {
+ ns.app.viewport.setGui(layout, xLayout, isUpdateGui);
+
web.mask.hide(ns.app.centerRegion);
- if (r.status === 413 || r.status === 414) {
+ if (Ext.Array.contains([413, 414], parseInt(r.status))) {
web.analytics.validateUrl(init.contextPath + '/api/analytics.json' + paramString);
}
else {
@@ -2382,6 +2384,7 @@
response = api.response.Response(Ext.decode(r.responseText));
if (!response) {
+ ns.app.viewport.setGui(layout, xLayout, isUpdateGui);
web.mask.hide(ns.app.centerRegion);
return;
}
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/chart.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/chart.js 2015-02-02 16:39:05 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/chart.js 2015-02-03 08:30:32 +0000
@@ -1219,7 +1219,7 @@
console.log('Response: no valid headers');
return;
}
-
+
if (!(Ext.isArray(config.rows) && config.rows.length > 0)) {
init.alert('No values found');
return;