Skip to content

Commit b6cc486

Browse files
jlu5oetiker
andauthored
Fix error when toggling Auto Refresh (#416)
* Fix error when toggling Auto Refresh The clearTimeout call was using the wrong parameter, leading to the error "Uncaught ReferenceError: reload is not defined" * Update CHANGES --------- Co-authored-by: Tobias Oetiker <tobi@oetiker.ch>
1 parent 5162854 commit b6cc486

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- fix error when toggling autorefresh @jlu5
12
- Support parsing IPv6 output in OpenSSHJunOSPing Plugin @zimage
23
- Enhancement to SSHProbe allows specification of IPv4 vs IPv6 transport, #385
34
- InfluxDB 2.x v1 (compatibility) api doesn't set the "WWW-Authenticate" header (violating rfc7235).

htdocs/js/smokeping.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Event.observe(
150150
}, window.options.step * 1000);
151151
$('refresh-button').style.textDecoration = "line-through";
152152
} else {
153-
clearTimeout(reload);
153+
clearTimeout(refresh);
154154
localStorage.setItem("noRefresh", true);
155155
$('refresh-button').style.textDecoration = "none";
156156
}

0 commit comments

Comments
 (0)