Fixed device power timeline when &hide=1

This commit is contained in:
Ylian Saint-Hilaire 2020-12-22 11:27:18 -08:00
parent 9153f767da
commit f8521367d5

View File

@ -6467,7 +6467,7 @@
// Draw the timeline
var x = '', count = 1, date = new Date();
var totalWidth = Q('masthead').offsetWidth - (160 + 9 + 9 + 14); // Compute the total width of the power bar
var totalWidth = Q('column_l').offsetWidth - (160 + 9 + 9 + 14); // Compute the total width of the power bar
date.setHours(0, 0, 0, 0);
for (var i = 0; i < 7; i++) {
var datavalue = '', start = date.getTime(), end = start + (1000 * 60 * 60 * 24);