mirror of https://github.com/Aidaho12/haproxy-wi
v2.0.7
parent
7c285fd892
commit
77ffb2f36d
|
@ -97,6 +97,7 @@ function showOverview() {
|
||||||
type: "GET",
|
type: "GET",
|
||||||
success: function( data ) {
|
success: function( data ) {
|
||||||
$("#ajax").html(data);
|
$("#ajax").html(data);
|
||||||
|
$.getScript(url);
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
@ -227,6 +228,27 @@ function viewLogs() {
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
function ajaxActionServers(action, id) {
|
||||||
|
var bad_ans = 'Bad config, check please';
|
||||||
|
$.ajax( {
|
||||||
|
url: "options.py",
|
||||||
|
data: {
|
||||||
|
action: action,
|
||||||
|
serv: id
|
||||||
|
},
|
||||||
|
success: function( data ) {
|
||||||
|
data = data.replace(/\s+/g,' ');
|
||||||
|
if( data == 'Bad config, check please ' ) {
|
||||||
|
alert(data);
|
||||||
|
} else {
|
||||||
|
setTimeout(showOverview, 2000)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(){
|
||||||
|
alert(w.data_error);
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
$( function() {
|
$( function() {
|
||||||
$( "#serv" ).on('selectmenuchange',function() {
|
$( "#serv" ).on('selectmenuchange',function() {
|
||||||
$("#show").css("pointer-events", "inherit");
|
$("#show").css("pointer-events", "inherit");
|
||||||
|
@ -271,27 +293,6 @@ $( function() {
|
||||||
$( "input[type=checkbox]" ).checkboxradio();
|
$( "input[type=checkbox]" ).checkboxradio();
|
||||||
$( ".controlgroup" ).controlgroup();
|
$( ".controlgroup" ).controlgroup();
|
||||||
|
|
||||||
function ajaxActionServers(action, id) {
|
|
||||||
var bad_ans = 'Bad config, check please';
|
|
||||||
$.ajax( {
|
|
||||||
url: "options.py",
|
|
||||||
data: {
|
|
||||||
action: action,
|
|
||||||
serv: id
|
|
||||||
},
|
|
||||||
success: function( data ) {
|
|
||||||
data = data.replace(/\s+/g,' ');
|
|
||||||
if( data == 'Bad config, check please ' ) {
|
|
||||||
alert(data);
|
|
||||||
} else {
|
|
||||||
setTimeout(showOverview, 2000)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function(){
|
|
||||||
alert(w.data_error);
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.start').click(function() {
|
$('.start').click(function() {
|
||||||
var id = $(this).attr('id');
|
var id = $(this).attr('id');
|
||||||
|
@ -671,11 +672,10 @@ $( function() {
|
||||||
$("#ajax-ssl").html(data);
|
$("#ajax-ssl").html(data);
|
||||||
} else if (data.indexOf('success') != '-1') {
|
} else if (data.indexOf('success') != '-1') {
|
||||||
$('.alert-danger').remove();
|
$('.alert-danger').remove();
|
||||||
$("#ssl").addClass( "update", 1000 );
|
|
||||||
setTimeout(function() {
|
|
||||||
$( "#ssl").removeClass( "update" );
|
|
||||||
}, 2500 );
|
|
||||||
$( "#ajax-ssl").html(data);
|
$( "#ajax-ssl").html(data);
|
||||||
|
setTimeout(function() {
|
||||||
|
$( "#ajax-ssl").html("");
|
||||||
|
}, 2500 );
|
||||||
} else {
|
} else {
|
||||||
$("#ajax-ssl").html('<div class="alert alert-danger">Something wrong, check and try again</div>');
|
$("#ajax-ssl").html('<div class="alert alert-danger">Something wrong, check and try again</div>');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue