Revision 0e10469d ui/templates/networks.html
b/ui/templates/networks.html | ||
---|---|---|
990 | 990 |
existing_public.find('span.ip6').text(new_ip6); |
991 | 991 |
} |
992 | 992 |
} |
993 |
//update firewall setting |
|
994 |
if (server.addresses.values[0].firewallProfile) { |
|
995 |
existing_public.find("input[value=" + server.addresses.values[0].firewallProfile + "]").attr('checked',true); |
|
996 |
existing_public.find(".firewall-label span").removeClass('firewall-off firewall-on'); |
|
997 |
if (server.addresses.values[0].firewallProfile == 'DISABLED') { |
|
998 |
existing_public.find('.firewall-label span').addClass('firewall-off'); |
|
999 |
existing_public.find('.firewall-label span').html(VARIOUS["OFF"]); |
|
1000 |
} else { |
|
1001 |
existing_public.find('.firewall-label span').addClass('firewall-on'); |
|
1002 |
existing_public.find('.firewall-label span').html(VARIOUS["ON"]); |
|
1003 |
} |
|
1004 |
} |
|
993 | 1005 |
//TODO: server has changed OS |
994 | 1006 |
} |
995 | 1007 |
// If server does not exist in public network, create it |
... | ... | |
1015 | 1027 |
machine.find("img.logo").attr("src","static/icons/machines/medium/" + server_image + '-off.png'); |
1016 | 1028 |
} |
1017 | 1029 |
machine.appendTo("#networks-pane .public-networks .machines-list"); |
1030 |
//update firewall setting |
|
1031 |
if (server.addresses.values[0].firewallProfile) { |
|
1032 |
machine.find("input[value=" + server.addresses.values[0].firewallProfile + "]").attr('checked',true); |
|
1033 |
machine.find(".firewall-label span").removeClass('firewall-off firewall-on'); |
|
1034 |
if (server.addresses.values[0].firewallProfile == 'DISABLED') { |
|
1035 |
machine.find('.firewall-label span').addClass('firewall-off'); |
|
1036 |
machine.find('.firewall-label span').html(VARIOUS["OFF"]); |
|
1037 |
} else { |
|
1038 |
machine.find('.firewall-label span').addClass('firewall-on'); |
|
1039 |
machine.find('.firewall-label span').html(VARIOUS["ON"]); |
|
1040 |
} |
|
1041 |
} |
|
1018 | 1042 |
} |
1019 | 1043 |
|
1020 | 1044 |
/* |
Also available in: Unified diff