Fixed skin names for previews
This commit is contained in:
parent
af047f0ec0
commit
f73973fabb
1 changed files with 8 additions and 8 deletions
|
@ -413,10 +413,10 @@ function list_macro(param, id, limit) {
|
||||||
var collection, skin;
|
var collection, skin;
|
||||||
if (id === "sites") {
|
if (id === "sites") {
|
||||||
collection = root.sites.list(0, max);
|
collection = root.sites.list(0, max);
|
||||||
skin = "$Site#preview";
|
skin = "Site#preview";
|
||||||
} else if (id === "updates") {
|
} else if (id === "updates") {
|
||||||
collection = root.updates.list(0, limit);
|
collection = root.updates.list(0, limit);
|
||||||
skin = "$Site#preview";
|
skin = "Site#preview";
|
||||||
/*
|
/*
|
||||||
var site;
|
var site;
|
||||||
collection = [];
|
collection = [];
|
||||||
|
@ -460,17 +460,17 @@ function list_macro(param, id, limit) {
|
||||||
case "comments":
|
case "comments":
|
||||||
var comments = site.stories.comments;
|
var comments = site.stories.comments;
|
||||||
collection = comments.list().filter(filter).filter(commentFilter);
|
collection = comments.list().filter(filter).filter(commentFilter);
|
||||||
skin = "$Comment#preview";
|
skin = "Story#preview";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "featured":
|
case "featured":
|
||||||
collection = site.stories.featured.list(0, max);
|
collection = site.stories.featured.list(0, max);
|
||||||
skin = "$Story#preview";
|
skin = "Story#preview";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "images":
|
case "images":
|
||||||
collection = site.images.list(0, max);
|
collection = site.images.list(0, max);
|
||||||
skin = "$Image#preview";
|
skin = "Image#preview";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "postings":
|
case "postings":
|
||||||
|
@ -481,7 +481,7 @@ function list_macro(param, id, limit) {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
skin = "$Story#preview";
|
skin = "Story#preview";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "stories":
|
case "stories":
|
||||||
|
@ -490,7 +490,7 @@ function list_macro(param, id, limit) {
|
||||||
collection = stories.list().filter(function(item, index) {
|
collection = stories.list().filter(function(item, index) {
|
||||||
return item.constructor === Story && filter(item, counter++);
|
return item.constructor === Story && filter(item, counter++);
|
||||||
});
|
});
|
||||||
skin = "$Story#preview";
|
skin = "Story#preview";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "tags":
|
case "tags":
|
||||||
|
|
Loading…
Add table
Reference in a new issue