mirror of https://github.com/Aidaho12/haproxy-wi
parent
b6a75c298e
commit
010635ffd5
|
@ -36,7 +36,7 @@ if service in ('haproxy', 'nginx', 'keepalived', 'apache'):
|
|||
action = f"config.py?service={service_desc.slug}"
|
||||
configs_dir = funct.get_config_var('configs', 'kp_save_configs_dir')
|
||||
file_format = 'conf'
|
||||
servers = sql.get_dick_permit(service=service_desc.service)
|
||||
servers = sql.get_dick_permit(service=service_desc.slug)
|
||||
|
||||
if service in ('haproxy', 'nginx', 'apache'):
|
||||
configs_dir = funct.get_config_var('configs', f'{service_desc.service}_save_configs_dir')
|
||||
|
|
|
@ -1629,7 +1629,7 @@ function editList(list, color) {
|
|||
}
|
||||
function saveList(action, list, color) {
|
||||
var serv = $( "#serv-"+color+"-list option:selected" ).val();
|
||||
if(!checkIsServerFiled(serv)) return false;
|
||||
if(!checkIsServerFiled($("#serv-"+color+"-list"))) return false;
|
||||
$.ajax({
|
||||
url: "options.py",
|
||||
data: {
|
||||
|
@ -1658,7 +1658,7 @@ function saveList(action, list, color) {
|
|||
}
|
||||
function deleteList(list, color) {
|
||||
var serv = $( "#serv-"+color+"-list option:selected" ).val();
|
||||
if(!checkIsServerFiled(serv)) return false;
|
||||
if(!checkIsServerFiled($("#serv-"+color+"-list"))) return false;
|
||||
$.ajax({
|
||||
url: "options.py",
|
||||
data: {
|
||||
|
|
Loading…
Reference in New Issue