From e793ac4b5fd048e4cee585f6f8c8a923ee36b9dc Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 27 Mar 2013 15:03:23 -0400 Subject: [PATCH] fixed file loading --- panels/dashcontrol/module.js | 2 +- panels/pie/module.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/panels/dashcontrol/module.js b/panels/dashcontrol/module.js index 8409062ed5e..afd7848eb82 100644 --- a/panels/dashcontrol/module.js +++ b/panels/dashcontrol/module.js @@ -112,7 +112,7 @@ angular.module('kibana.dashcontrol', []) $scope.file_load = function(file) { $http({ - url: "dashboards/default", + url: "dashboards/"+file, method: "GET", }).success(function(data, status, headers, config) { var dashboard = data diff --git a/panels/pie/module.js b/panels/pie/module.js index bd8128bbf07..fd4d2f6a1d9 100644 --- a/panels/pie/module.js +++ b/panels/pie/module.js @@ -246,7 +246,7 @@ angular.module('kibana.pie', []) show: scope.panel.labels, radius: 2/3, formatter: function(label, series){ - return '
'+ + return '
'+ label+'
'+Math.round(series.percent)+'%
'; }, threshold: 0.1 @@ -311,7 +311,6 @@ angular.module('kibana.pie', []) } }); - } }; }) \ No newline at end of file