this.message = new _kiwi.view.StatusMessage({el: this.view.$el.find('.status_message')[0]});\r
\r
this.resize_handle = new _kiwi.view.ResizeHandler({el: this.view.$el.find('.memberlists_resize_handle')[0]});\r
-\r
- this.panel_access = new Array();\r
-\r
+ \r
// Rejigg the UI sizes\r
this.view.doLayout();\r
};\r
},\r
\r
closePanel: function () {\r
- console.log("Closing panel");\r
if (this.view) {\r
this.view.unbind();\r
this.view.remove();\r
\r
this.unbind();\r
this.destroy();\r
-\r
- // If closing the active panel, switch to the last-accessed panel\r
- if (this === _kiwi.app.panels().active) {\r
- _kiwi.app.panel_access.shift();\r
-\r
- var modelsList = _kiwi.app.connections.active_connection.panels.models;\r
- //Since it always has at least one tab, just go to the 0th element\r
- for (var i=0; i < modelsList.length;i++) {\r
- if (modelsList[i].cid === _kiwi.app.panel_access[0]) {\r
- console.log("Yap");\r
- modelsList[i].view.show();\r
- }\r
- }\r
- }\r
},\r
\r
// Alias to closePanel() for child objects to override\r