Changelog https://roxy-wi.org/changelog#6_1_5
pull/343/head
Pavel Loginov 2022-09-03 10:23:02 +03:00
parent b6a75c298e
commit 010635ffd5
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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: {