1. Install script. Thx @shnacharya for help
2. Possibility of selecting the existing certificates on the servers in "Add" sections
3. Bugs fixed
This commit is contained in:
Aidaho12
2018-04-25 18:23:05 +06:00
parent 653443cdde
commit b11b646676
13 changed files with 110 additions and 43 deletions

View File

@@ -529,12 +529,16 @@ $( function() {
serv: $("#serv").val()
},
success: function( data ) {
response(data.split("\n"));
data = data.replace(/\s+/g,' ');
response(data.split(" "));
}
} );
},
autoFocus: true,
minLength: -1
minLength: -1,
select: function( event, ui ) {
$('#listen-port').focus();
}
});
$( "#ip1" ).autocomplete({
source: function( request, response ) {
@@ -545,10 +549,11 @@ $( function() {
url: "options.py",
data: {
ip: request.term,
serv: $("#serv").val()
serv: $("#serv2").val()
},
success: function( data ) {
response(data.split("\n"));
data = data.replace(/\s+/g,' ');
response(data.split(" "));
}
} );
},
@@ -599,4 +604,55 @@ $( function() {
$("#optionsInput2").append(ui.item.value + " ")
}
});
$( "#path-cert-listen" ).autocomplete({
source: function( request, response ) {
$.ajax( {
url: "options.py",
data: {
getcert:1,
serv: $("#serv").val()
},
success: function( data ) {
data = data.replace(/\s+/g,' ');
response(data.split(" "));
}
} );
},
autoFocus: true,
minLength: -1
});
$( "#path-cert-frontend" ).autocomplete({
source: function( request, response ) {
$.ajax( {
url: "options.py",
data: {
getcert:1,
serv: $("#serv2").val()
},
success: function( data ) {
data = data.replace(/\s+/g,' ');
response(data.split(" "));
}
} );
},
autoFocus: true,
minLength: -1
});
$( "#path-cert-backend" ).autocomplete({
source: function( request, response ) {
$.ajax( {
url: "options.py",
data: {
getcert:1,
serv: $("#serv3").val()
},
success: function( data ) {
data = data.replace(/\s+/g,' ');
response(data.split(" "));
}
} );
},
autoFocus: true,
minLength: -1
});
});