dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21709
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10355: (GIS) Download encoding bug fixed + (PT) Minor issues fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 10355 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-03-20 15:00:33 +0100
message:
(GIS) Download encoding bug fixed + (PT) Minor issues fixed.
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js
dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js
dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.js
dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/styles/style.css
--
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-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-03-20 13:09:12 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-03-20 13:43:02 +0000
@@ -1814,7 +1814,6 @@
text: 'Create', //i18n
handler: function() {
var name = nameTextfield.getValue(),
- system = systemCheckbox.getValue(),
layers = gis.util.map.getVisibleVectorLayers(),
layer,
lonlat = gis.olmap.getCenter(),
@@ -3021,7 +3020,7 @@
button = Ext.create('Ext.button.Button', {
text: 'Download', //i18n
handler: function() {
- var title = textfield.getValue(),
+ var title = Ext.htmlEncode(textfield.getValue()),
svg = gis.util.svg.getString(title, gis.util.map.getVisibleVectorLayers()),
exportForm = document.getElementById('exportForm');
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js 2013-03-20 13:09:12 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js 2013-03-20 13:28:12 +0000
@@ -348,7 +348,6 @@
GIS.core.createSelectHandlers = function(gis, layer) {
var isRelocate = !!GIS.app ? (gis.init.user.isAdmin ? true : false) : false,
- isInfo = !!GIS.app,
window,
infrastructuralPeriod,
=== modified file 'dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js 2013-03-20 11:04:55 +0000
+++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js 2013-03-20 13:58:21 +0000
@@ -3534,7 +3534,7 @@
preventHeader: true,
collapsible: true,
collapseMode: 'mini',
- width: Ext.isWebKit ? pt.conf.layout.west_width + 7 : pt.conf.layout.west_width + 17,
+ width: Ext.isWebKit ? pt.conf.layout.west_width + 8 : pt.conf.layout.west_width + 17,
items: accordion
});
=== modified file 'dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.js 2013-03-20 11:04:55 +0000
+++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/core.js 2013-03-20 13:58:21 +0000
@@ -741,7 +741,19 @@
header.index = i;
if (header.meta) {
- header.items = header.name === pt.conf.finals.dimension.period.dimensionName ? [].concat(response.metaData.periods) : xLayout.nameItemsMap[header.name];
+
+ // categories
+ if (header.name === pt.conf.finals.dimension.category.dimensionName) {
+ header.items = [].concat(response.metaData[pt.conf.finals.dimension.category.dimensionName]);
+ }
+ // periods
+ else if (header.name === pt.conf.finals.dimension.period.dimensionName) {
+ header.items = [].concat(response.metaData[pt.conf.finals.dimension.period.dimensionName]);
+ }
+ else {
+ header.items = xLayout.nameItemsMap[header.name];
+ }
+
header.size = header.items.length;
}
}
=== modified file 'dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/styles/style.css'
--- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/styles/style.css 2013-03-19 17:04:42 +0000
+++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/styles/style.css 2013-03-20 13:58:21 +0000
@@ -67,8 +67,8 @@
/* Scrollbar Webkit */
::-webkit-scrollbar {
- width: 9px;
- height: 9px;
+ width: 10px;
+ height: 10px;
border: 0 none;
}