double-click to update the legend immediately
Costa Tsaousis (ktsaou) committed
Dec 29, 2015 at 05:31 UTC
2514e6896851ba1486bcaef39bdddbd9c01b2643
2 files changed
+4
-7
web/dashboard.js
+3
-6
@@ -1485,9 +1485,6 @@
1485
NETDATA.globalSelectionSync.state = null;
1486
}
1487
1488
- // since we are the sync master, we should not call this.clearSelection()
1489
- // dygraphs is taking care of visualizing our selection.
1490
- this.selected = false;
1488
this.clearSelection();
1489
}
1490
@@ -1518,9 +1515,10 @@
1515
1516
if(this.selected === false && this.debug === true)
1517
this.log('selection cleared');
1518
+
1519
+ this.legendReset();
1520
}
1521
1523
- this.legendReset();
1522
return this.selected;
1523
}
1524
@@ -2208,10 +2206,9 @@
2206
}
2207
}
2208
hideMessage();
2209
+ this.legendShowLatestValues();
2210
NETDATA.globalSelectionSync.stop();
2211
2213
- // this.legendShowLatestValues();
2214
-
2212
// update the performance counters
2213
var now = new Date().getTime();
2214
this.tm.last_updated = now;
web/index.html
+1
-1
@@ -253,7 +253,7 @@
253
<!-- <script> netdataServer = "http://box:19999"; </script> -->
254
255
<!-- load the dashboard manager - it will do the rest -->
256
- <script type="text/javascript" src="dashboard.js?v10"></script>
256
+ <script type="text/javascript" src="dashboard.js?v11"></script>
257
</head>
258
259
<body data-spy="scroll" data-target="#sidebar">