From 8a6dab1eebc0386c1b6fb7848ecd3d9ae326431a Mon Sep 17 00:00:00 2001 From: Paul Shahid Date: Tue, 25 Mar 2014 20:46:17 -0400 Subject: [PATCH] Last bit of cleanup --- client/src/models/application.js | 4 +--- client/src/models/panel.js | 15 --------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/client/src/models/application.js b/client/src/models/application.js index eb6b807..05dd482 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -127,9 +127,7 @@ _kiwi.model.Application = function () { this.message = new _kiwi.view.StatusMessage({el: this.view.$el.find('.status_message')[0]}); this.resize_handle = new _kiwi.view.ResizeHandler({el: this.view.$el.find('.memberlists_resize_handle')[0]}); - - this.panel_access = new Array(); - + // Rejigg the UI sizes this.view.doLayout(); }; diff --git a/client/src/models/panel.js b/client/src/models/panel.js index 7141557..14dfc0d 100644 --- a/client/src/models/panel.js +++ b/client/src/models/panel.js @@ -9,7 +9,6 @@ _kiwi.model.Panel = Backbone.Model.extend({ }, closePanel: function () { - console.log("Closing panel"); if (this.view) { this.view.unbind(); this.view.remove(); @@ -27,20 +26,6 @@ _kiwi.model.Panel = Backbone.Model.extend({ this.unbind(); this.destroy(); - - // If closing the active panel, switch to the last-accessed panel - if (this === _kiwi.app.panels().active) { - _kiwi.app.panel_access.shift(); - - var modelsList = _kiwi.app.connections.active_connection.panels.models; - //Since it always has at least one tab, just go to the 0th element - for (var i=0; i < modelsList.length;i++) { - if (modelsList[i].cid === _kiwi.app.panel_access[0]) { - console.log("Yap"); - modelsList[i].view.show(); - } - } - } }, // Alias to closePanel() for child objects to override -- 2.25.1