Skip to content

Commit

Permalink
Removed dodgy hack for #power, will use proper urls instead
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTimbones committed Nov 14, 2023
1 parent d3ac0a8 commit 76b5e96
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/OpenEnergyMonitor/myheatpump/myheatpump.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function show()

// If this is a new dashboard there will be less than a days data
// show power graph directly in this case
if (((end*0.001)-start_time)<86400*3 || viewmode=="powergraph" || location.hash == "#power") {
if (((end*0.001)-start_time)<86400*3 || viewmode=="powergraph") {
var timeWindow = (end - start_time*1000);
if (timeWindow>(86400*3*1000)) timeWindow = 86400*1*1000;
var start = end - timeWindow;
Expand All @@ -167,12 +167,6 @@ function show()
$(".powergraph-navigation").show();
powergraph_draw();
$("#advanced-toggle").show();

if (location.hash == "#power") {
// auto-expand detail
$("#advanced-block").show();
$("#advanced-toggle").html("HIDE DETAIL");
}
} else {
var timeWindow = (3600000*24.0*30);
var start = end - timeWindow;
Expand Down

0 comments on commit 76b5e96

Please sign in to comment.