Skip to content

Commit

Permalink
webui: do not attempt to apply values if selecting the "Please select…
Browse files Browse the repository at this point in the history
…" entry in the DoT presets dropdown
  • Loading branch information
RMerl committed Apr 15, 2019
1 parent 33ca4ab commit 72f61e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release/src/router/www/Advanced_WAN_Content.asp
Expand Up @@ -1011,7 +1011,7 @@ function build_dot_server_presets(){
var optGroup = "", opt; var optGroup = "", opt;
free_options(document.form.dotPresets); free_options(document.form.dotPresets);
add_option(document.form.dotPresets, "<#Select_menu_default#>", 0, 1); add_option(document.form.dotPresets, "<#Select_menu_default#>", -1, 1);
for(var i = 0; i < dot_servers_array.length; i++) { for(var i = 0; i < dot_servers_array.length; i++) {
if (dot_servers_array[i].length == 1) { if (dot_servers_array[i].length == 1) {
Expand All @@ -1034,6 +1034,7 @@ function build_dot_server_presets(){
function change_wizard(o, id){ function change_wizard(o, id){
if (id == "dotPresets") { if (id == "dotPresets") {
var i = o.value; var i = o.value;
if (i == -1) return;
document.form.dnspriv_server_0.value = dot_servers_array[i][1]; document.form.dnspriv_server_0.value = dot_servers_array[i][1];
document.form.dnspriv_port_0.value = dot_servers_array[i][2]; document.form.dnspriv_port_0.value = dot_servers_array[i][2];
document.form.dnspriv_hostname_0.value = dot_servers_array[i][3]; document.form.dnspriv_hostname_0.value = dot_servers_array[i][3];
Expand Down

0 comments on commit 72f61e1

Please sign in to comment.