@cryptotaxi247 / netdata-1 / commits / 738a25dcc

restore highlighted timeframe from snapshots, overwritting the pre-existing one

Costa Tsaousis (ktsaou) committed Nov 18, 2017 at 23:33 UTC 738a25dccfe5738d8acafe015ae8edfaa65356f8
1 file changed +7 -5
web/index.html
+7 -5
@@ -673,12 +673,14 @@
673 before = 0;
674 }
675
676 - if(netdataSnapshotData === null) {
676 + if(netdataSnapshotData === null)
677 urlOptions.highlight = status;
678 - urlOptions.highlight_after = Math.round(after);
679 - urlOptions.highlight_before = Math.round(before);
680 - urlOptions.hashUpdate();
681 - }
678 + else
679 + urlOptions.highlight = false;
680 +
681 + urlOptions.highlight_after = Math.round(after);
682 + urlOptions.highlight_before = Math.round(before);
683 + urlOptions.hashUpdate();
684
685 if(status === true && after > 0 && before > 0 && after < before) {
686 var d1 = NETDATA.dateTime.localeDateString(after);