From 48d8935c70a874951bf45bf6fef445caa5f9ad6a Mon Sep 17 00:00:00 2001 From: Darren Date: Mon, 6 May 2013 22:08:15 +0100 Subject: [PATCH] Showing the correct server panel on panel close --- client/assets/dev/model_panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/assets/dev/model_panel.js b/client/assets/dev/model_panel.js index 0018589..2efbe5a 100644 --- a/client/assets/dev/model_panel.js +++ b/client/assets/dev/model_panel.js @@ -85,8 +85,8 @@ _kiwi.model.Panel = Backbone.Model.extend({ this.destroy(); // If closing the active panel, switch to the server panel - if (this.cid === _kiwi.app.panels().active.cid) { - _kiwi.app.panels().server.view.show(); + if (this === _kiwi.app.panels().active) { + _kiwi.app.connections.active_connection.panels.server.view.show(); } }, -- 2.25.1