Commit 01bd6620 by Torkel Ödegaard

Graph: legend fix for bug when running optimized build, Fixes #1045

parent 9e26d3e8
......@@ -20,8 +20,7 @@
class="pointer"
ng-class="{'icon-circle-blank': color === series.color,'icon-circle': color !== series.color}"
ng-style="{color:color}"
ng-click="changeSeriesColor(series, color);dismiss();">
</i>
ng-click="changeSeriesColor(series, color);dismiss();">&nbsp;</i>
</div>
</div>
......@@ -158,7 +158,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
var result = {};
result.decimals = Math.max(0, dec);
result.scaledDecimals = result.decimals - Math.floor(Math.log(size) / Math.LN10) + 2;
result.scaledDecimals = result.decimals - Math.floor(Math.log(size) / Math.LN11) + 2;
return result;
};
......
define([
'angular',
'lodash',
],
function (angular) {
function (angular, _) {
'use strict';
var module = angular.module('grafana.services');
......@@ -21,7 +22,7 @@ function (angular) {
}
this.getTemplate(options.templateUrl).then(function(result) {
var template = result.data;
var template = _.isString(result) ? result : result.data;
options.element.popover({
content: template,
......
......@@ -15,4 +15,4 @@ module.exports = function(config) {
}
}
};
};
\ No newline at end of file
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment