← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6920: Added option for skipping animatio in dv plugin

 

------------------------------------------------------------
revno: 6920
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2012-05-12 15:36:32 +0200
message:
  Added option for skipping animatio in dv plugin
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js	2012-05-12 08:35:08 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js	2012-05-12 13:36:32 +0000
@@ -389,6 +389,7 @@
                 el: '',
                 legendPosition: false,
                 orgUnitIsParent: false,
+                skipAnimation: false,
                 url: ''
             };
             
@@ -540,7 +541,7 @@
 				renderTo: project.state.conf.el,
                 width: project.state.conf.width || this.el.getWidth(),
                 height: project.state.conf.height || this.el.getHeight(),
-                animate: true,
+                animate: !project.state.conf.skipAnimation,
                 store: project.store,
                 items: DHIS.util.chart.getTitle(),
                 legend: DHIS.util.chart.getLegend(project.store.left.length),
@@ -588,7 +589,7 @@
 				renderTo: project.state.conf.el,
                 width: project.state.conf.width || this.el.getWidth(),
                 height: project.state.conf.height || this.el.getHeight(),
-                animate: true,
+                animate: !project.state.conf.skipAnimation,
                 store: project.store,
                 items: DHIS.util.chart.getTitle(),
                 legend: DHIS.util.chart.getLegend(project.store.bottom.length),
@@ -636,7 +637,7 @@
 				renderTo: project.state.conf.el,
                 width: project.state.conf.width || this.el.getWidth(),
                 height: project.state.conf.height || this.el.getHeight(),
-                animate: true,
+                animate: !project.state.conf.skipAnimation,
                 store: project.store,
                 items: DHIS.util.chart.getTitle(),
                 legend: DHIS.util.chart.getLegend(project.store.left.length),
@@ -668,7 +669,7 @@
 				renderTo: project.state.conf.el,
                 width: project.state.conf.width || this.el.getWidth(),
                 height: project.state.conf.height || this.el.getHeight(),
-                animate: true,
+                animate: !project.state.conf.skipAnimation,
                 store: project.store,
                 items: DHIS.util.chart.getTitle(),
                 legend: DHIS.util.chart.getLegend(project.store.left.length),
@@ -709,7 +710,7 @@
 				renderTo: project.state.conf.el,
                 width: project.state.conf.width || this.el.getWidth(),
                 height: project.state.conf.height || this.el.getHeight(),
-                animate: true,
+                animate: !project.state.conf.skipAnimation,
                 shadow: true,
                 store: project.store,
                 insetPadding: 60,