mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2026-10-09 01:11:33 +02:00
Fix doubled tags on reload (#277)
This commit is contained in:
@@ -199,6 +199,7 @@ Global Settings
|
||||
|
||||
// Load DNS server to the form
|
||||
{{range .globalSettings.DNSServers}}
|
||||
$("#dns_servers").removeTag('{{.}}');
|
||||
$("#dns_servers").addTag('{{.}}');
|
||||
{{end}}
|
||||
|
||||
|
||||
@@ -165,6 +165,7 @@ Wireguard Server Settings
|
||||
|
||||
// Load server addresses to the form
|
||||
{{range .serverInterface.Addresses}}
|
||||
$("#addresses").removeTag('{{.}}');
|
||||
$("#addresses").addTag('{{.}}');
|
||||
{{end}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user