Add advanced configuration (raw openvpn conf edition)

This commit is contained in:
Julien VAUBOURG
2014-11-20 20:02:43 +01:00
parent a7eac12c27
commit 3aae0029cb
10 changed files with 70 additions and 27 deletions

View File

@@ -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;
}

View File

@@ -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');
});
});