From: Paul Shahid Date: Wed, 26 Mar 2014 00:46:17 +0000 (-0400) Subject: Last bit of cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8a6dab1eebc0386c1b6fb7848ecd3d9ae326431a;p=KiwiIRC.git Last bit of cleanup --- 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