X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-router_block_ip.html;h=72640d3d5ec90a6f5662322f48c99bcb7fd267f1;hp=535e953c40040dcc8b7d526488bb23bdaa9d4600;hb=aa616de5731fa26c036cf56ee6b4f10e27afdb5d;hpb=211865a049969b1b539988cc8558ee35e8cb5945 diff --git a/httemplate/elements/tr-select-router_block_ip.html b/httemplate/elements/tr-select-router_block_ip.html index 535e953c4..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'); @@ -71,7 +71,7 @@ function populate_ip_select() { % } if ( blocknum && $.isNumeric(blocknum) && ! e.is(':hidden')) { $.getJSON( - '<% $p %>json/free_addresses_in_block.json.html', + '<% $p %>misc/xmlhttp-free_addresses_in_block.json.html', {blocknum: blocknum}, function(ip_json) { $.each( ip_json, function(idx, val) {