From: Darren Date: Mon, 4 Aug 2014 16:09:37 +0000 (+0100) Subject: Removing server tabs when connection is removed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=12c3851e28b323f4f342dfe1fa512683f591a02f;p=KiwiIRC.git Removing server tabs when connection is removed --- diff --git a/client/src/views/networktabs.js b/client/src/views/networktabs.js index 1e75692..c814960 100644 --- a/client/src/views/networktabs.js +++ b/client/src/views/networktabs.js @@ -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();