Commit 397c56aa authored by Ad Schellevis's avatar Ad Schellevis

Proxy fix status check

parent e472f132
......@@ -40,7 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
$('.selectpicker').selectpicker('refresh');
// request service status on load and update status box
ajaxCall(url="/api/proxy/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI("proxy",data['responseText']);
updateServiceStatusUI(data['status']);
});
});
......@@ -68,10 +68,12 @@ POSSIBILITY OF SUCH DAMAGE.
draggable: true
});
} else {
// request service status after successful save and update status box
// request service status after successful save and update status box (wait a few seconds before update)
setTimeout(function(){
ajaxCall(url="/api/proxy/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI("proxy",data['responseText']);
updateServiceStatusUI(data['status']);
});
},3000);
}
});
});
......
......@@ -105,7 +105,7 @@ function mapDataToFormUI(data_get_map) {
/**
* update service status buttons in user interface
*/
function updateServiceStatusUI(service, status) {
function updateServiceStatusUI(status) {
var status_html = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment