diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-06-29 13:04:33 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-06-29 13:04:33 -0500 |
commit | e2ee874843b19f6c5221f5ce0af90979dba34e57 (patch) | |
tree | 2dcd98ca17c33eeb4163f542bf7038b7aa073f41 /httemplate | |
parent | 04c717c096f556a9ba0e8c4a137e867029c78a1b (diff) |
RT# 30783 Clean up json code for free_addrs
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/tr-select-router_block_ip.html | 2 | ||||
-rw-r--r-- | httemplate/misc/xmlhttp-free_addresses_in_block.json.html (renamed from httemplate/json/free_addresses_in_block.json.html) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/elements/tr-select-router_block_ip.html b/httemplate/elements/tr-select-router_block_ip.html index 535e953c4..eac41cfad 100644 --- a/httemplate/elements/tr-select-router_block_ip.html +++ b/httemplate/elements/tr-select-router_block_ip.html @@ -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) { diff --git a/httemplate/json/free_addresses_in_block.json.html b/httemplate/misc/xmlhttp-free_addresses_in_block.json.html index 6785aac6b..801718d35 100644 --- a/httemplate/json/free_addresses_in_block.json.html +++ b/httemplate/misc/xmlhttp-free_addresses_in_block.json.html @@ -3,7 +3,7 @@ Unless block is larger than /24 - Does somebody really want to populate 65k addresses into a HTML selectbox? </%doc> -<% encode_rest($json) %>\ +<% encode_json($json) %>\ <%init> my $json = []; |