Fixes for content screen

fixes #1125

- fixes an error in the console when there are no posts
- resolves the issue whereby content disappears after scroll
This commit is contained in:
Hannah Wolfe 2013-10-17 20:49:48 +01:00
parent e29a598fa5
commit 5916844835

View File

@ -35,7 +35,7 @@
showNext: function () {
if (this.isLoading) { return; }
var id = this.collection.at(0).id;
var id = this.collection.at(0) ? this.collection.at(0).id : false;
if (id) {
Backbone.trigger('blog:activeItem', id);
}
@ -77,6 +77,8 @@
this.isLoading = true;
this.collection.fetch({
update: true,
remove: false,
data: {
status: 'all',
page: (self.collection.currentPage + 1),