mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 18:11:40 -05:00
setting post limit through session
This commit is contained in:
parent
bdb166c829
commit
f24dee88cb
1 changed files with 3 additions and 1 deletions
|
@ -289,7 +289,9 @@ PostsListController = FastRender.RouteController.extend({
|
|||
];
|
||||
},
|
||||
data: function () {
|
||||
var parameters = getParameters(this._terms),
|
||||
var newterms = this._terms;
|
||||
newterms.limit = Session.get('newlimit') || 10;
|
||||
var parameters = getParameters(newterms),
|
||||
posts = Posts.find(parameters.find, parameters.options);
|
||||
postsCount = posts.count();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue