Removing server tabs when connection is removed
authorDarren <darren@darrenwhitlen.com>
Mon, 4 Aug 2014 16:09:37 +0000 (17:09 +0100)
committerDarren <darren@darrenwhitlen.com>
Mon, 4 Aug 2014 16:09:37 +0000 (17:09 +0100)
client/src/views/networktabs.js

index 1e756920d0bf2883decaefd807732c5538a8e7aa..c814960c0376cd8130027071c41d6bfbf9d24f2f 100644 (file)
@@ -17,6 +17,9 @@ _kiwi.view.NetworkTabs = Backbone.View.extend({
     },
 
     networkRemoved: function(network) {
+        // Remove the containing list element
+        network.panels.view.$el.parent().remove();
+
         network.panels.view.remove();
 
         _kiwi.app.view.doLayout();