← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4954: (DV) Chart title added (temporarily on the chart toolbar).

 

Merge authors:
  Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 4954 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-10-14 14:29:38 +0200
message:
  (DV) Chart title added (temporarily on the chart toolbar).
modified:
  dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.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-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js'
--- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js	2011-10-11 13:19:20 +0000
+++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js	2011-10-14 12:27:58 +0000
@@ -807,6 +807,7 @@
             var c = Ext.getCmp('center');
             c.removeAll(true);
             c.add(this.chart);
+            c.down('label').setText(DV.state.filter.data[0] || 'Example chart');
         }
     };
         
@@ -1673,9 +1674,10 @@
                             //}).show();
                         //}
                     //},
+                    '-',' ',
                     {
                         xtype: 'label',
-                        text: '',
+                        text: 'Example chart',
                         style: 'font-weight:bold; padding:0 4px'
                     },
                     '->',