Revision d6872a51 ui/templates/networks.html
b/ui/templates/networks.html | ||
---|---|---|
653 | 653 |
|
654 | 654 |
//hide firewall content on apply click |
655 | 655 |
$("#networks-pane .firewall-apply").live('click', function() { |
656 |
var serverID = $(this).parent().parent().attr("id").split('-').pop();
|
|
657 |
var networkID = $(this).parent().parent().parent().parent().parent().parent().attr("id").split('-').pop();
|
|
656 |
var serverID = $(this).closest('.network-machine').attr("id").split('-').pop();
|
|
657 |
var networkID = $(this).closest('.network-machine').attr("id").split('-')[1];
|
|
658 | 658 |
var profile = $(this).parent().find('input:checked').attr('value'); |
659 | 659 |
if (profile != undefined) { |
660 | 660 |
set_firewall(networkID, serverID, profile); |
Also available in: Unified diff