Render conversation placeholder hint in place

// FREEBIE
This commit is contained in:
lilia 2015-11-28 14:41:58 -08:00
parent 891a5e54ad
commit 8d214b73d9
4 changed files with 10 additions and 19 deletions

View file

@ -102,13 +102,7 @@
this.inboxListView.$el.hide();
});
this.hintView = new Whisper.HintView({
className: 'conversation placeholder',
content: "Select a contact or group to start chatting."
});
if (inboxCollection.length === 0) {
this.hintView.render();
this.hintView.$el.prependTo(this.$('.conversation-stack'));
this.searchView.showAllContacts = true;
this.searchView.reset();
this.listenToOnce(inboxCollection, 'add', function() {
@ -141,7 +135,6 @@
}
},
hideHints: function() {
this.hintView.remove();
this.searchView.hideHints();
},
openConversation: function(e, conversation) {