Remove no posts info after rendering with available posts
This commit is contained in:
parent
4c7948c7f7
commit
ba9a2cbeba
1 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,12 @@ app.views.InfScroll = app.views.Base.extend({
|
|||
}
|
||||
},
|
||||
|
||||
postRenderTemplate: function() {
|
||||
if (this.postViews.length > 0) {
|
||||
this.$(".no-posts-info").closest(".stream-element").remove();
|
||||
}
|
||||
},
|
||||
|
||||
showNoPostsInfo: function() {
|
||||
if (this.postViews.length === 0) {
|
||||
var noPostsInfo = new app.views.NoPostsInfo();
|
||||
|
|
|
|||
Loading…
Reference in a new issue