From a8a95509bfca2510f1e5627e5a0d269ed78834cb Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sun, 8 Jul 2018 20:02:25 -0500 Subject: RT# 30783 js fix for ip selection --- httemplate/elements/tr-select-router_block_ip.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/elements/tr-select-router_block_ip.html b/httemplate/elements/tr-select-router_block_ip.html index eac41cfad..72640d3d5 100644 --- a/httemplate/elements/tr-select-router_block_ip.html +++ b/httemplate/elements/tr-select-router_block_ip.html @@ -4,8 +4,8 @@ var ip_addr_curr_value = <% $opt{'ip_addr'} |js_string %>; var blocknum_curr_value = <% $opt{'blocknum'} |js_string %>; function update_ip_addr() { - var routernum = $('#router_select_0').val(); - var blocknum = $('#router_select_1').val(); + var routernum = $('#router_select_0').val() || ""; + var blocknum = $('#router_select_1').val() || ""; var e_input_ip_addr = $('#input_ip_addr'); var e_router_select_1 = $('#router_select_1'); -- cgit v1.2.1