Increased maximum of items in global list_macro() and Site.history_macro() to 50
This commit is contained in:
parent
781b050cc7
commit
f2aa28ead2
2 changed files with 2 additions and 3 deletions
|
|
@ -405,8 +405,7 @@ function list_macro(param, id, limit) {
|
|||
return;
|
||||
}
|
||||
|
||||
limit || (limit = 25);
|
||||
var max = Math.min(limit, 20);
|
||||
var max = Math.min(limit || 25, 50);
|
||||
var collection, skin;
|
||||
if (id === "sites") {
|
||||
collection = root.sites.list(0, max);
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ Site.prototype.timezonechooser_macro = function(param) {
|
|||
Site.prototype.history_macro = function(param, type) {
|
||||
param.skin || (param.skin = "Story#history");
|
||||
var type = (param.show === "comments" ? "comments" : "postings");
|
||||
var limit = Math.min(param.limit || 10, 20);
|
||||
var limit = Math.min(param.limit || 10, 50);
|
||||
delete param.show;
|
||||
delete param.limit;
|
||||
return list_macro(param, type, limit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue