File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,10 @@ var inverter = {
74
74
var xmlhttp = new XMLHttpRequest ( ) ;
75
75
var req = "/cmd?cmd=" + cmd ;
76
76
77
- xmlhttp . onload = function ( )
78
- {
77
+ xmlhttp . onload = function ( ) {
79
78
if ( replyFunc ) replyFunc ( this . responseText ) ;
80
79
}
81
- xmlhttp . onreadystatechange = function ( )
82
- {
80
+ xmlhttp . onreadystatechange = function ( ) {
83
81
if ( xmlhttp . readyState === XMLHttpRequest . DONE ) {
84
82
console . log ( req + ": " + xmlhttp . status ) ;
85
83
if ( xmlhttp . status != 200 ) {
@@ -91,8 +89,7 @@ var inverter = {
91
89
else {
92
90
paramsCache . failedFetchCount = 0 ;
93
91
}
94
- if ( paramsCache . failedFetchCount < 2 )
95
- {
92
+ if ( paramsCache . failedFetchCount < 2 ) {
96
93
ui . hideCommunicationErrorBar ( ) ;
97
94
}
98
95
}
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ var ui = {
142
142
ui . populateFileList ( ) ;
143
143
ui . refreshStatusBox ( ) ;
144
144
ui . getNodeId ( ) ;
145
+ ui . setAutoReload ( true ) ;
145
146
} ,
146
147
147
148
/** @brief automatically update data on the UI */
You can’t perform that action at this time.
0 commit comments