Really close conversation windows

Only the inbox should hide when closed.
This commit is contained in:
lilia 2015-05-21 18:20:16 -07:00
parent 5d3a2a4cc8
commit a5e80e8a5a

View file

@ -25,11 +25,15 @@
this.render(); this.render();
}, },
events: { events: {
'click .close': 'hide', 'click .close': 'close',
'click .minimize': 'minimize' 'click .minimize': 'minimize'
}, },
hide: function() { close: function() {
this.appWindow.hide(); if (this.appWindow.id === 'inbox') {
this.appWindow.hide();
} else {
this.appWindow.close();
}
}, },
minimize: function() { minimize: function() {
this.appWindow.minimize(); this.appWindow.minimize();