Merge pull request #1716 from ErisDS/post-order

API refactor / cleanup
This commit is contained in:
Hannah Wolfe 2013-12-21 12:46:57 -08:00
commit 12c7a571e2
2 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,7 @@
blog: function () {
var posts = new Ghost.Collections.Posts();
NProgress.start();
posts.fetch({ data: { status: 'all', orderBy: ['updated_at', 'DESC'], where: { page: 'all' } } }).then(function () {
posts.fetch({ data: { status: 'all', staticPages: 'all'} }).then(function () {
Ghost.currentView = new Ghost.Views.Blog({ el: '#main', collection: posts });
NProgress.done();
});

View File

@ -94,8 +94,7 @@
data: {
status: 'all',
page: (self.collection.currentPage + 1),
where: { page: 'all' },
orderBy: ['updated_at', 'DESC']
staticPages: 'all'
}
}).then(function onSuccess(response) {
/*jslint unparam:true*/