diff options
Diffstat (limited to 'web/index.html')
-rw-r--r-- | web/index.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/web/index.html b/web/index.html index be944e34..cd8239d2 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"></div>'; @@ -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 @@ </div> </body> </html> -<script type="text/javascript" src="dashboard.js?v20170715-1"></script> +<script type="text/javascript" src="dashboard.js?v20170815-14"></script> |