change url path in ajax : suseendhiran
This commit is contained in:
parent
843bac3d66
commit
cb3164a13d
@ -483,7 +483,7 @@
|
|||||||
Last updated <%=date %>
|
Last updated <%=date %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class = "header1">
|
<div id="statusHeader" class = "header1">
|
||||||
<% if ( down == 0) { %>
|
<% if ( down == 0) { %>
|
||||||
<h1><i class="dot" aria-hidden = "true" style="font-size:26px;color:lightgreen"></i> <strong> All systems
|
<h1><i class="dot" aria-hidden = "true" style="font-size:26px;color:lightgreen"></i> <strong> All systems
|
||||||
<span class="uk-text-primary">operational</span></strong></h1>
|
<span class="uk-text-primary">operational</span></strong></h1>
|
||||||
@ -590,7 +590,7 @@
|
|||||||
var api = $(evt.target).parent().parent("tr").find("td:nth-child(1)").text();
|
var api = $(evt.target).parent().parent("tr").find("td:nth-child(1)").text();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
url: "/api_monitor/api/SingleApiStatus",
|
url: "/api/SingleApiStatus",
|
||||||
data: {api : api},
|
data: {api : api},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.success == true)
|
if (response.success == true)
|
||||||
@ -601,11 +601,14 @@
|
|||||||
if (response.Status == "Up")
|
if (response.Status == "Up")
|
||||||
{
|
{
|
||||||
var success = '<i class="dot" style="font-size:14px;color: #3bd671 !important;height:15px;width:15px;"></i> <b>'+response.Status+'</b>'
|
var success = '<i class="dot" style="font-size:14px;color: #3bd671 !important;height:15px;width:15px;"></i> <b>'+response.Status+'</b>'
|
||||||
|
var status = '<h1><i class="dot" aria-hidden = "true" style="font-size:26px;color:lightgreen"></i> <strong> All systems <span class="uk-text-primary">operational</span></strong></h1>'
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var success = '<i class="dot1" style="font-size:14px;color: red;height:15px;width:15px;"></i> <b1>'+response.Status+'</b1>'
|
var success = '<i class="dot1" style="font-size:14px;color: red;height:15px;width:15px;"></i> <b1>'+response.Status+'</b1>'
|
||||||
|
var status = '<h1><i class="dot1" aria-hidden = "true" style="font-size:26px;color:red"></i> <strong> Some systems are <span class="uk-text-primary1">down</span></strong></h1>'
|
||||||
}
|
}
|
||||||
|
$('#statusHeader').html(status);
|
||||||
$(evt.target).parent().parent("tr").find("td:nth-child(2)").html(response.StatusCode);
|
$(evt.target).parent().parent("tr").find("td:nth-child(2)").html(response.StatusCode);
|
||||||
$(evt.target).parent().parent("tr").find("td:nth-child(3)").html(success);
|
$(evt.target).parent().parent("tr").find("td:nth-child(3)").html(success);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user