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();
},
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();