From 6aaf5ba7ed0980c14bdc554fc8839a2126455ed5 Mon Sep 17 00:00:00 2001 From: Lennart Weller Date: Mon, 18 Sep 2017 00:17:33 +0200 Subject: New upstream version 1.8.0+dfsg --- web/index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'web/index.html') diff --git a/web/index.html b/web/index.html index be944e34d..cd8239d26 100644 --- a/web/index.html +++ b/web/index.html @@ -1182,6 +1182,13 @@ return def * this.context[id].height; else return def; + }, + + contextDecimalDigits: function(id, def) { + if(typeof this.context[id] !== 'undefined' && typeof this.context[id].decimalDigits !== 'undefined') + return this.context[id].decimalDigits; + else + return def; } }; @@ -1514,6 +1521,7 @@ + ' data-after="-' + duration.toString() + '"' + ' data-id="' + NETDATA.name2id(options.hostname + '/' + chart.id) + '"' + ' data-colors="' + netdataDashboard.anyAttribute(netdataDashboard.context, 'colors', chart.context, '') + '"' + + ' data-decimal-digits="' + netdataDashboard.contextDecimalDigits(chart.context, -1) + '"' + chartCommonMin(chart.family, chart.context, chart.units) + chartCommonMax(chart.family, chart.context, chart.units) + ' role="application">'; @@ -2961,7 +2969,7 @@ }); NETDATA.requiredJs.push({ - url: NETDATA.serverDefault + 'dashboard_info.js?v20170530-1', + url: NETDATA.serverDefault + 'dashboard_info.js?v20170916-1', async: false, isAlreadyLoaded: function() { return false; } }); @@ -3589,4 +3597,4 @@ - + -- cgit v1.2.3