Replace message list loading spinner with bar

// FREEBIE
This commit is contained in:
lilia 2016-03-18 17:59:54 -07:00
parent d39a19d889
commit 7310afd1b4
8 changed files with 102 additions and 67 deletions

View file

@ -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?