Add advanced configuration (raw openvpn conf edition)
This commit is contained in:
@@ -6,7 +6,7 @@ li.status-warning {
|
||||
color: #D9534F;
|
||||
}
|
||||
|
||||
li.status-danger {
|
||||
li.status-danger, div#raw_openvpn_panel {
|
||||
color: #D9534F;
|
||||
}
|
||||
|
||||
@@ -69,3 +69,12 @@ div#github {
|
||||
div#github a {
|
||||
margin-left: 17px;
|
||||
}
|
||||
|
||||
div#raw_openvpn_panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
textarea#raw_openvpn {
|
||||
height: 300px;
|
||||
border: 1px solid #D9534F;
|
||||
}
|
||||
|
@@ -50,14 +50,22 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
$('#statusbtn').click(function() {
|
||||
$('#status-loading').show();
|
||||
if($('#status-loading').is(':hidden')) {
|
||||
$('#status').hide();
|
||||
$('#status-loading').show();
|
||||
|
||||
$.ajax({
|
||||
url: '?/status',
|
||||
}).done(function(data) {
|
||||
$('#status-loading').hide();
|
||||
$('#status-text').html('<ul>' + data + '</ul>');
|
||||
$('#status').show('slow');
|
||||
});
|
||||
$.ajax({
|
||||
url: '?/status',
|
||||
}).done(function(data) {
|
||||
$('#status-loading').hide();
|
||||
$('#status-text').html('<ul>' + data + '</ul>');
|
||||
$('#status').show('slow');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#raw_openvpn_btn').click(function() {
|
||||
$('#raw_openvpn_btnpanel').hide();
|
||||
$('#raw_openvpn_panel').show('low');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user