mirror of https://github.com/Aidaho12/haproxy-wi
v3.2.6
parent
6effdca461
commit
c5fb798a37
|
@ -5,6 +5,24 @@ $( function() {
|
||||||
heightStyle: "content",
|
heightStyle: "content",
|
||||||
icons: { "header": "ui-icon-plus", "activeHeader": "ui-icon-minus" }
|
icons: { "header": "ui-icon-plus", "activeHeader": "ui-icon-minus" }
|
||||||
});
|
});
|
||||||
|
$('#raw').click(function() {
|
||||||
|
$(".configShow").accordion("destroy");
|
||||||
|
$('#raw').css('display', 'none');
|
||||||
|
$('.numRow').css('display', 'none');
|
||||||
|
$('#according').css('display', 'inline-block');
|
||||||
|
$('.accordion-expand-all').css('display', 'none');
|
||||||
|
});
|
||||||
|
$('#according').click(function() {
|
||||||
|
$( ".configShow" ).accordion({
|
||||||
|
collapsible: true,
|
||||||
|
heightStyle: "content",
|
||||||
|
icons: { "header": "ui-icon-plus", "activeHeader": "ui-icon-minus" }
|
||||||
|
});
|
||||||
|
$('#raw').css('display', 'inline-block');
|
||||||
|
$('.numRow').css('display', 'inline-block');
|
||||||
|
$('#according').css('display', 'none');
|
||||||
|
$('.accordion-expand-all').css('display', 'inline-block');
|
||||||
|
});
|
||||||
var headers = $('.configShow .accordion-header');
|
var headers = $('.configShow .accordion-header');
|
||||||
var contentAreas = $('.configShow .ui-accordion-content ').hide()
|
var contentAreas = $('.configShow .ui-accordion-content ').hide()
|
||||||
.first().show().end();
|
.first().show().end();
|
||||||
|
|
|
@ -80,7 +80,9 @@ $( function() {
|
||||||
$( "#show-all-users" ).text("Show all");
|
$( "#show-all-users" ).text("Show all");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (cur_url[0] == "overview.py" || cur_url[0] == "waf.py" || cur_url[0] == "metrics.py") {
|
||||||
$('#secIntervals').css('display', 'none');
|
$('#secIntervals').css('display', 'none');
|
||||||
|
}
|
||||||
$('#apply_close').click( function() {
|
$('#apply_close').click( function() {
|
||||||
$("#apply").css('display', 'none');
|
$("#apply").css('display', 'none');
|
||||||
Cookies.remove('restart', { path: '' });
|
Cookies.remove('restart', { path: '' });
|
||||||
|
|
|
@ -757,6 +757,9 @@ function updateServer(id) {
|
||||||
}
|
}
|
||||||
function uploadSsh() {
|
function uploadSsh() {
|
||||||
$('.alert-danger').remove();
|
$('.alert-danger').remove();
|
||||||
|
if ($( "#ssh-key-name option:selected" ).val() == "Choose server" || $('#ssh_cert').val() == '') {
|
||||||
|
$("#ajax-ssh").html('<div class="alert alert-danger" style="margin: 10px;">All fields must be completed</div>');
|
||||||
|
} else {
|
||||||
$.ajax( {
|
$.ajax( {
|
||||||
url: "options.py",
|
url: "options.py",
|
||||||
data: {
|
data: {
|
||||||
|
@ -775,12 +778,12 @@ function uploadSsh() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$( "#ajax-ssh").html( "" );
|
$( "#ajax-ssh").html( "" );
|
||||||
}, 2500 );
|
}, 2500 );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$("#ajax-ssh").html('<div class="alert alert-danger">Something wrong, check and try again</div>');
|
$("#ajax-ssh").html('<div class="alert alert-danger">Something wrong, check and try again</div>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function updateSSH(id) {
|
function updateSSH(id) {
|
||||||
$('#error').remove();
|
$('#error').remove();
|
||||||
|
|
Loading…
Reference in New Issue