sysutils/monit: does not need the timeout

This commit is contained in:
Franco Fichtner 2017-12-25 23:04:08 +01:00
parent a4c2dab9e6
commit 77cf809242

View file

@ -113,12 +113,9 @@ POSSIBILITY OF SUCH DAMAGE.
draggable: true
});
} else {
// request service status after successful save and update status box (wait a few seconds before update)
setTimeout(function(){
ajaxCall(url="/api/monit/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI(data['status']);
});
},3000);
ajaxCall(url="/api/monit/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI(data['status']);
});
}
});
}