@cryptotaxi247 / netdata-1 / commits / 35e2322e0

properly lookup charts for the right host when loading snapshots

Costa Tsaousis (ktsaou) committed Nov 12, 2017 at 22:19 UTC 35e2322e06c857bf19ef408ddd09e357bbe8d6a3
2 files changed +2 -3
web/dashboard.js
+1 -2
@@ -250,7 +250,6 @@ var NETDATA = window.NETDATA || {};
250 // if the user does not specify any of these, the following will be used
251
252 NETDATA.chartDefaults = {
253 - host: NETDATA.serverDefault, // the server to get data from
253 width: '100%', // the chart width - can be null
254 height: '100%', // the chart height - can be null
255 min_width: null, // the chart minimum width - can be null
@@ -2241,7 +2240,7 @@ var NETDATA = window.NETDATA || {};
2240 return;
2241
2242 // string - the netdata server URL, without any path
2244 - that.host = NETDATA.dataAttribute(that.element, 'host', NETDATA.chartDefaults.host);
2243 + that.host = NETDATA.dataAttribute(that.element, 'host', NETDATA.serverDefault);
2244
2245 // make sure the host does not end with /
2246 // all netdata API requests use absolute paths
web/index.html
+1 -1
@@ -4703,6 +4703,6 @@
4703 </div>
4704 </div>
4705 </div>
4706 - <script type="text/javascript" src="dashboard.js?v20171112-20"></script>
4706 + <script type="text/javascript" src="dashboard.js?v20171112-21"></script>
4707 </body>
4708 </html>