← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 329: &lt; and &gt; are now displayed as < and > in the combo boxes as well.

 

------------------------------------------------------------
revno: 329
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Mon 2009-05-25 20:59:41 +0200
message:
  &lt; and &gt; are now displayed as < and > in the combo boxes as well.
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-05-22 17:15:35 +0000
+++ gis/dhis-web-mapping/src/main/webapp/mfbase/mapfish/widgets/geostat/Choropleth.js	2009-05-25 18:59:41 +0000
@@ -156,7 +156,21 @@
             root: 'indicators',
             fields: ['id', 'name'],
             sortInfo: { field: 'name', direction: 'ASC' },
-            autoLoad: false
+            autoLoad: false,
+            listeners: {
+                'load': {
+                    fn: function() {
+                        indicatorStore.each( function fn(record) {
+                                var name = record.get('name');
+                                name = name.replace('&lt;', '<').replace('&gt;', '>');
+                                record.set('name', name);
+                            },  this
+                        );
+                        Ext.getCmp('indicator_cb').reset();
+                    },
+                    scope: this
+                }
+            }
         });
         
         periodTypeStore = new Ext.data.JsonStore({
@@ -470,7 +484,6 @@
 
         },
  */
- 
         {
             xtype: 'colorfield',
             fieldLabel: 'Low color',
@@ -491,9 +504,9 @@
             value: "#FF0000"
         },
         
-        { html: '<br>' }
+        { html: '<br>' },
 
-        ,{
+        {
             xtype: 'button',
             text: 'Refresh colors',
             handler: function()



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