Revision 2a437761 ui/templates/networks.html

b/ui/templates/networks.html
402 402
        $(this).find('.machines-label').addClass('darker');
403 403
        $(this).closest('div.network').addClass('light-background');
404 404
    }
405
    $(this).parent().next("#networks-pane .network-contents").slideToggle(600);
405
    $(this).parent().next("#networks-pane .network-contents").slideToggle(600, update_net_ui);
406 406
    return false;
407 407
});
408 408

  
......
648 648
        $(this).find('.toggler').addClass('up');
649 649
        $(this).find('.firewall-label').addClass('darker');
650 650
    }
651
    $(this).parent().next(".firewall-content").slideToggle(600);
651
    $(this).parent().next(".firewall-content").slideToggle(600, update_net_ui);
652 652
    return false;
653 653
});
654 654

  
......
1098 1098
        });
1099 1099
    }
1100 1100
    $("#networks-pane #networks-container > .large-spinner").hide();
1101
    update_net_ui();
1102
}
1101 1103

  
1104
function update_net_ui() {
1102 1105
    // show all separators and hide the last one
1103 1106
    $("div.private-networks div.separator").show();
1104 1107
    $("div.private-networks div.separator:last").hide();

Also available in: Unified diff