mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-08-28 07:51:13 +00:00
Added checking if peers removed directly from config file by not from dashboard, and fixed DNS did not get check from editing peers
This commit is contained in:
@@ -67,8 +67,6 @@ $("#save_peer").click(function(){
|
||||
for (var i = 0; i < data_list.length; i++){
|
||||
data_list[i].attr("disabled", "disabled")
|
||||
}
|
||||
|
||||
|
||||
$.ajax({
|
||||
method: "POST",
|
||||
url: "/add_peer/"+conf,
|
||||
@@ -248,7 +246,7 @@ $("#save_peer_setting").click(function (){
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
}else{
|
||||
$("#setting_peer_alert").html("Please fill in all required box.");
|
||||
$("#setting_peer_alert").removeClass("d-none");
|
||||
$("#save_peer_setting").removeAttr("disabled")
|
||||
|
Reference in New Issue
Block a user