Showing the correct server panel on panel close
authorDarren <darren@Darrens-MacBook-Pro.local>
Mon, 6 May 2013 21:08:15 +0000 (22:08 +0100)
committerDarren <darren@Darrens-MacBook-Pro.local>
Mon, 6 May 2013 21:08:15 +0000 (22:08 +0100)
client/assets/dev/model_panel.js

index 00185899b9fa48ff9e35c75a17bd67e8fbe3eca4..2efbe5aaeeadbce762cd7cc5844890d5afec1fd3 100644 (file)
@@ -85,8 +85,8 @@ _kiwi.model.Panel = Backbone.Model.extend({
         this.destroy();\r
 \r
         // If closing the active panel, switch to the server panel\r
-        if (this.cid === _kiwi.app.panels().active.cid) {\r
-            _kiwi.app.panels().server.view.show();\r
+        if (this === _kiwi.app.panels().active) {\r
+            _kiwi.app.connections.active_connection.panels.server.view.show();\r
         }\r
     },\r
 \r