Replace message list loading spinner with bar
// FREEBIE
This commit is contained in:
parent
d39a19d889
commit
7310afd1b4
8 changed files with 102 additions and 67 deletions
|
@ -105,10 +105,10 @@
|
|||
},
|
||||
|
||||
fetchMessages: function() {
|
||||
this.$('.message-list').addClass('loading');
|
||||
this.$('.bar-container').show();
|
||||
return this.model.fetchContacts().then(function() {
|
||||
return this.model.fetchMessages().then(function() {
|
||||
this.$('.message-list').removeClass('loading');
|
||||
this.$('.bar-container').hide();
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
// TODO catch?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue