cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/master to 7b6ed79
Date Thu, 22 Aug 2013 22:25:25 GMT
Updated Branches:
  refs/heads/master 2e56e7b02 -> 7b6ed7965


Extended zone charts to allow for easy creation of custom charts


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7b6ed796
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7b6ed796
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7b6ed796

Branch: refs/heads/master
Commit: 7b6ed7965926830d5ec6ecad26c75faa7f0f1d94
Parents: 2e56e7b
Author: Chris Suich <chris.suich@netapp.com>
Authored: Wed Jul 31 13:44:32 2013 -0400
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Thu Aug 22 15:18:18 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui-custom/zoneChart.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7b6ed796/ui/scripts/ui-custom/zoneChart.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/zoneChart.js b/ui/scripts/ui-custom/zoneChart.js
index 1a5fb59..e847a19 100644
--- a/ui/scripts/ui-custom/zoneChart.js
+++ b/ui/scripts/ui-custom/zoneChart.js
@@ -18,7 +18,7 @@
     /**
      * Zone details chart
      */
-    cloudStack.uiCustom.systemChart = function(chartID) {
+    cloudStack.uiCustom.systemChart = function(chartID, chartFunc) {
         /**
          * Make view all button
          */
@@ -446,7 +446,10 @@
             // Fix zone context naming
             args.context.zones = args.context.physicalResources;
 
-            var $chart = charts[chartID](args).addClass('system-chart').addClass(chartID);
+            if (chartFunc == null)
+                chartFunc = charts[chartID];
+
+            var $chart = chartFunc(args).addClass('system-chart').addClass(chartID);
 
             return $chart;
         };


Mime
View raw message