mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Extended zone charts to allow for easy creation of custom charts
This commit is contained in:
parent
2e56e7b02c
commit
7b6ed79659
@ -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;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user