mirror of https://github.com/Aidaho12/haproxy-wi
parent
63174b2567
commit
a0aaab0efe
|
@ -52,14 +52,12 @@
|
|||
{% else %}
|
||||
<span>
|
||||
{% endif %}
|
||||
{% if s.9 %}
|
||||
<span title="HTTP check: {{s.9.split(':')[0]}}://{{s.0}}:{{s.1}}{{s.9.split(':')[1]}}
|
||||
{% if s.11 and s.11 != 'None' %}Body check: {{s.11}}{% endif %}"
|
||||
<span title="Enabled checks:
|
||||
Port check{% if s.9 %}
|
||||
HTTP status check: {{s.9.split(':')[0]}}://{{s.0}}:{{s.1}}{{s.9.split(':')[1]}}
|
||||
{% if s.11 and s.11 != 'None' %}Body response check: {{s.11}}{% endif %}
|
||||
{% endif %}"> {{s.0}}:{{s.1}}
|
||||
</span>
|
||||
{{s.0}}:{{s.1}}
|
||||
{% else %}
|
||||
{{s.0}}:{{s.1}}
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div class="desc">
|
||||
|
|
|
@ -991,7 +991,12 @@ function listHistroy() {
|
|||
$('.menu li ul li').each(function () {
|
||||
var link1 = $(this).find('a').attr('href');
|
||||
var link2 = link1.split('/')[2]
|
||||
if (browse_history[i].split('?')[0] == link2) {
|
||||
if (browse_history[i] == link2) {
|
||||
title[i] = $(this).find('a').attr('title');
|
||||
link_text[i] = $(this).find('a').text();
|
||||
history_link = '<li><a href="'+browse_history[i]+'" title="'+title[i]+'">'+link_text[i]+'</a></li>'
|
||||
$('#browse_histroy').append(history_link);
|
||||
} else if (browse_history[i].split('?')[0] == link2) {
|
||||
title[i] = $(this).find('a').attr('title');
|
||||
link_text[i] = $(this).find('a').text();
|
||||
history_link = '<li><a href="'+browse_history[i]+'" title="'+title[i]+'">'+link_text[i]+'</a></li>'
|
||||
|
@ -1044,7 +1049,7 @@ function showSmon(action) {
|
|||
},
|
||||
type: "POST",
|
||||
success: function( data ) {
|
||||
if (data.indexOf('error') != '-1') {
|
||||
if (data.indexOf('SMON error') != '-1') {
|
||||
toastr.error(data);
|
||||
} else {
|
||||
$("#smon_dashboard").html(data);
|
||||
|
|
Loading…
Reference in New Issue