← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 249: Period combobox now displays 'January 2008' instead of '2008-01-01' (startdate).

 

------------------------------------------------------------
revno: 249
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Fri 2009-04-24 10:42:13 +0200
message:
  Period combobox now displays 'January 2008' instead of '2008-01-01' (startdate).
modified:
  gis/dhis-web-mapping/src/main/webapp/mfbase/mapfish/widgets/geostat/Choropleth.js

=== modified file 'gis/dhis-web-mapping/src/main/webapp/mfbase/mapfish/widgets/geostat/Choropleth.js'
--- gis/dhis-web-mapping/src/main/webapp/mfbase/mapfish/widgets/geostat/Choropleth.js	2009-04-23 21:07:01 +0000
+++ gis/dhis-web-mapping/src/main/webapp/mfbase/mapfish/widgets/geostat/Choropleth.js	2009-04-24 08:42:13 +0000
@@ -170,9 +170,8 @@
             
         periodStore = new Ext.data.JsonStore({
             url: path + 'getPeriodsByPeriodType' + type,
-            baseParams: { periodTypeId: '9', format: 'json' },
             root: 'periods',
-            fields: ['id', 'startDate'],
+            fields: ['id', 'name'],
             autoLoad: true
         });
             
@@ -195,9 +194,10 @@
 
         legendStore = new Ext.data.JsonStore({
             url: path + 'getMapLegendSet' + type,
+            baseParams: { indicatorId: 52487, format: 'json' },
             root: 'mapLegendSet',
             fields: ['id', 'name'],
-            autoLoad: false
+            autoLoad: true
         });
 
         this.items = [
@@ -296,7 +296,7 @@
             typeAhead: true,
             editable: false,
             valueField: 'id',
-            displayField: 'startDate',
+            displayField: 'name',
             mode: 'remote',
             forceSelection: true,
             triggerAction: 'all',



--
Trunk
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.