← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 178: Minor fixes.

 

------------------------------------------------------------
revno: 178
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Thu 2009-04-16 13:12:03 +0200
message:
  Minor fixes.
modified:
  gis/dhis-gis-geostat/demos/geostat/geostat.js
  gis/dhis-gis-geostat/mfbase/mapfish/widgets/geostat/Choropleth.js

=== modified file 'gis/dhis-gis-geostat/demos/geostat/geostat.js'
--- gis/dhis-gis-geostat/demos/geostat/geostat.js	2009-04-15 15:26:19 +0000
+++ gis/dhis-gis-geostat/demos/geostat/geostat.js	2009-04-16 11:12:03 +0000
@@ -225,6 +225,7 @@
     
     var zoomComboBox = new Ext.form.ComboBox({
         id: 'zoom_cb',
+        editable: false,
         emptyText: 'Required',
         displayField: 'value',
         valueField: 'value',
@@ -341,7 +342,6 @@
         {
             var mlp = Ext.getCmp('deletemap_cb').getValue();
             
-alert(mlp);            
             if (!mlp)
             {
                 Ext.MessageBox.alert('Error', 'Choose a map');
@@ -398,7 +398,7 @@
                             Ext.getCmp('deletemap_b').setVisible(false);
                         }
                         
-                        if (tab.id == 1)
+                        else if (tab.id == 1)
                         {
                             Ext.getCmp('panel1_p').setVisible(false);
                             Ext.getCmp('panel2_p').setVisible(true);
@@ -407,7 +407,7 @@
                             Ext.getCmp('deletemap_b').setVisible(false);
                         }
                         
-                        if (tab.id == 2)
+                        else if (tab.id == 2)
                         {
                             Ext.getCmp('panel1_p').setVisible(false);
                             Ext.getCmp('panel2_p').setVisible(false);
@@ -421,7 +421,6 @@
                 {
                     title:'New map',
                     id: '0',
-                    defaults:{layout: 'fit', border: false, bodyStyle: 'padding:10px'},
                     items:
                     [
                         {
@@ -454,7 +453,6 @@
                 {
                     title:'Edit map',
                     id: '1',
-                    defaults:{layout: 'fit', border: false, bodyStyle: 'padding:8px'},
                     items:
                     [
                         {
@@ -514,7 +512,6 @@
                 {
                     title:'Delete map',
                     id: '2',
-                    defaults:{layout: 'fit', border: false, bodyStyle: 'padding:8px'},
                     items:
                     [
                         {

=== modified file 'gis/dhis-gis-geostat/mfbase/mapfish/widgets/geostat/Choropleth.js'
--- gis/dhis-gis-geostat/mfbase/mapfish/widgets/geostat/Choropleth.js	2009-04-15 15:26:19 +0000
+++ gis/dhis-gis-geostat/mfbase/mapfish/widgets/geostat/Choropleth.js	2009-04-16 11:12:03 +0000
@@ -292,7 +292,7 @@
                         legendStore.baseParams = { indicatorId: iId, format: 'json' };
                         legendStore.reload();
                         
-                        classify(false);
+                        this.classify(false);
                     }
                 }
             }
@@ -345,7 +345,7 @@
                 'select': {
                     fn: function()
                     {
-                        classify(false);
+                        this.classify(false);
                     }
                 }
             }



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