Render conversation placeholder hint in place
// FREEBIE
This commit is contained in:
parent
891a5e54ad
commit
8d214b73d9
4 changed files with 10 additions and 19 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue