Revision e58fdac8 ui/templates/networks.html
b/ui/templates/networks.html | ||
---|---|---|
1070 | 1070 |
if (!existing_private.length) { |
1071 | 1071 |
var machine = $("#networks-pane #private-machine-template").clone().attr("id", "net-" + server_net.id + "-server-" + server.id).fadeIn("slow"); |
1072 | 1072 |
machine.find('span.name').text(fix_server_name(server.name, 25)); |
1073 |
|
|
1074 |
// the id of the server the callback function will show connect message for |
|
1075 |
var CONNECT_SERVER_ID = server.id; |
|
1076 |
machine.find('.machine-connect').click(function(){ |
|
1077 |
// keep id in local scope |
|
1078 |
var id = CONNECT_SERVER_ID; |
|
1079 |
machine_connect([machine_connect, id]) |
|
1080 |
}); |
|
1081 |
|
|
1073 | 1082 |
if (server.status=='BUILD' || server.status=='ACTIVE' ||server.status=='REBOOT') { |
1074 | 1083 |
machine.find("img.logo").attr("src","static/icons/machines/medium/" + server_image + '-on.png'); |
1075 | 1084 |
} else { |
Also available in: Unified diff