dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12246
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3723: Fixed: GIS - Period does not show when select period type
------------------------------------------------------------
revno: 3723
committer: tranthanhtri84@xxxxxxxxx
branch nick: dhis2
timestamp: Tue 2011-05-24 16:36:40 +0700
message:
Fixed: GIS - Period does not show when select period type
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/jsonPeriodTypes.vm
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/index.js
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Choropleth.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-mapping/src/main/webapp/dhis-web-mapping/jsonPeriodTypes.vm'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/jsonPeriodTypes.vm 2010-11-25 15:08:07 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/jsonPeriodTypes.vm 2011-05-24 09:36:40 +0000
@@ -3,7 +3,8 @@
#foreach( $periodType in $object )
{
"id": "$!{periodType.id}",
- "name": "$!encoder.jsonEncode( $i18n.getString($periodType.name) )"
+ "name": "$!encoder.jsonEncode( $periodType.name )",
+ "displayName": "$!encoder.jsonEncode( $i18n.getString($periodType.name) )"
}#if( $velocityCount < $size ),#end
#end
] }
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/index.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/index.js 2011-05-23 16:04:37 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/javascript/index.js 2011-05-24 09:36:40 +0000
@@ -137,7 +137,7 @@
var periodTypeStore = new Ext.data.JsonStore({
url: G.conf.path_mapping + 'getAllPeriodTypes' + G.conf.type,
root: 'periodTypes',
- fields: ['name'],
+ fields: ['name','displayName'],
autoLoad: false,
isLoaded: false,
listeners: {
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Choropleth.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Choropleth.js 2011-05-20 16:00:08 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Choropleth.js 2011-05-24 09:36:40 +0000
@@ -476,7 +476,7 @@
typeAhead: true,
editable: false,
valueField: 'name',
- displayField: 'name',
+ displayField: 'displayName',
mode: 'remote',
forceSelection: true,
triggerAction: 'all',