mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed file loading
This commit is contained in:
parent
79dbffc875
commit
e793ac4b5f
@ -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
|
||||
|
@ -246,7 +246,7 @@ angular.module('kibana.pie', [])
|
||||
show: scope.panel.labels,
|
||||
radius: 2/3,
|
||||
formatter: function(label, series){
|
||||
return '<div style="font-size:8pt;text-align:center;padding:2px;color:white;">'+
|
||||
return '<div ng-click="build_search(panel.query.field,\''+label+'\') "style="font-size:8pt;text-align:center;padding:2px;color:white;">'+
|
||||
label+'<br/>'+Math.round(series.percent)+'%</div>';
|
||||
},
|
||||
threshold: 0.1
|
||||
@ -311,7 +311,6 @@ angular.module('kibana.pie', [])
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user