Skip to content

Commit

Permalink
only reset refresh if refresh is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 8, 2012
1 parent ca596a2 commit 1cf4943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion root/thruk/javascript/all_in_one-1.55.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function setRefreshRate(rate) {

/* reset refresh interval */
function resetRefresh() {
if( typeof refresh_rate != "undefined" ) {
if( typeof refresh_rate == "number" ) {
setRefreshRate(refresh_rate);
}
}
Expand Down
2 changes: 1 addition & 1 deletion root/thruk/javascript/thruk-1.55.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function setRefreshRate(rate) {

/* reset refresh interval */
function resetRefresh() {
if( typeof refresh_rate != "undefined" ) {
if( typeof refresh_rate == "number" ) {
setRefreshRate(refresh_rate);
}
}
Expand Down

0 comments on commit 1cf4943

Please sign in to comment.