From a5e80e8a5ab3764ca223ed57f87dad2e5e308c19 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 21 May 2015 18:20:16 -0700 Subject: [PATCH] Really close conversation windows Only the inbox should hide when closed. --- js/views/window_controls_view.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/views/window_controls_view.js b/js/views/window_controls_view.js index f42684c4..7c8e8ed3 100644 --- a/js/views/window_controls_view.js +++ b/js/views/window_controls_view.js @@ -25,11 +25,15 @@ this.render(); }, events: { - 'click .close': 'hide', + 'click .close': 'close', 'click .minimize': 'minimize' }, - hide: function() { - this.appWindow.hide(); + close: function() { + if (this.appWindow.id === 'inbox') { + this.appWindow.hide(); + } else { + this.appWindow.close(); + } }, minimize: function() { this.appWindow.minimize();