mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
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:
parent
e29a598fa5
commit
5916844835
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user