Skip to content

Commit e928892

Browse files
committed
default auto reload true
1 parent c4de3b5 commit e928892

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

data/inverter.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,10 @@ var inverter = {
7474
var xmlhttp=new XMLHttpRequest();
7575
var req = "/cmd?cmd=" + cmd;
7676

77-
xmlhttp.onload = function()
78-
{
77+
xmlhttp.onload = function() {
7978
if (replyFunc) replyFunc(this.responseText);
8079
}
81-
xmlhttp.onreadystatechange = function()
82-
{
80+
xmlhttp.onreadystatechange = function() {
8381
if (xmlhttp.readyState === XMLHttpRequest.DONE) {
8482
console.log(req + ": " + xmlhttp.status);
8583
if (xmlhttp.status != 200) {
@@ -91,8 +89,7 @@ var inverter = {
9189
else {
9290
paramsCache.failedFetchCount = 0;
9391
}
94-
if ( paramsCache.failedFetchCount < 2 )
95-
{
92+
if ( paramsCache.failedFetchCount < 2 ) {
9693
ui.hideCommunicationErrorBar();
9794
}
9895
}

data/ui.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ var ui = {
142142
ui.populateFileList();
143143
ui.refreshStatusBox();
144144
ui.getNodeId();
145+
ui.setAutoReload(true);
145146
},
146147

147148
/** @brief automatically update data on the UI */

0 commit comments

Comments
 (0)