Update subnets.html
Don't break old links, use comments only if provided.
This commit is contained in:
parent
8299a07a13
commit
3c3908d9d1
@ -437,10 +437,15 @@ function calcOnLoad()
|
|||||||
{
|
{
|
||||||
preloadSubnetImages();
|
preloadSubnetImages();
|
||||||
args = parseQueryString();
|
args = parseQueryString();
|
||||||
if (args['network'] && args['mask'] && args['division'] && args['comments']) {
|
if (args['network'] && args['mask'] && args['division']) {
|
||||||
document.forms['calc'].elements['network'].value = args['network'];
|
document.forms['calc'].elements['network'].value = args['network'];
|
||||||
document.forms['calc'].elements['netbits'].value = args['mask'];
|
document.forms['calc'].elements['netbits'].value = args['mask'];
|
||||||
curComments = JSON.parse(args['comments']);
|
|
||||||
|
if (args['comments']) {
|
||||||
|
curComments = JSON.parse(args['comments']);
|
||||||
|
} else {
|
||||||
|
curComments = {};
|
||||||
|
}
|
||||||
updateNetwork();
|
updateNetwork();
|
||||||
var division = asciiToBin(args['division']);
|
var division = asciiToBin(args['division']);
|
||||||
rootSubnet = [0, 0, null];
|
rootSubnet = [0, 0, null];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user