Browse Source

Always clear legend before updating graph.

pull/60/head
Julius Volz 12 years ago
parent
commit
f6c449e782
  1. 2
      static/js/graph.js

2
static/js/graph.js

@ -263,9 +263,9 @@ Prometheus.Graph.prototype.showGraph = function() {
Prometheus.Graph.prototype.updateGraph = function(reloadGraph) {
var self = this;
if (self.data.length == 0) { return; }
self.legend.empty();
if (self.rickshawGraph == null || reloadGraph) {
self.graph.empty();
self.legend.empty();
self.showGraph();
} else {
self.rickshawGraph.configure({

Loading…
Cancel
Save