Skip to content

Commit

Permalink
refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter(Yongsik) Moon authored and scroix committed Apr 1, 2024
1 parent 9889dcb commit c3e2335
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nodel-webui-js/src/nodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ $(function() {
refreshNodeList();
});
getLocalsList().then(function(){
// need to update again?
refreshLocalsList();
});
checkHostList();
setEvents();
Expand Down Expand Up @@ -810,6 +810,14 @@ var refreshNodeList = function(){
}, 2000);
}

var refreshLocalsList = function(){
setTimeout(function(){
getLocalsList().then(function(){
refreshLocalsList();
})
}, 2000);
}

var getNodeList = function(filterstr){
if(!_.isUndefined(filterstr)) $.observable(nodeList['flt'] = filterstr);
filter = {'filter': nodeList['flt']};
Expand Down

0 comments on commit c3e2335

Please sign in to comment.