Fixed skin names for previews

This commit is contained in:
Tobi Schäfer 2008-05-09 18:42:22 +00:00
parent af047f0ec0
commit f73973fabb

View file

@ -413,10 +413,10 @@ function list_macro(param, id, limit) {
var collection, skin;
if (id === "sites") {
collection = root.sites.list(0, max);
skin = "$Site#preview";
skin = "Site#preview";
} else if (id === "updates") {
collection = root.updates.list(0, limit);
skin = "$Site#preview";
skin = "Site#preview";
/*
var site;
collection = [];
@ -460,17 +460,17 @@ function list_macro(param, id, limit) {
case "comments":
var comments = site.stories.comments;
collection = comments.list().filter(filter).filter(commentFilter);
skin = "$Comment#preview";
skin = "Story#preview";
break;
case "featured":
collection = site.stories.featured.list(0, max);
skin = "$Story#preview";
skin = "Story#preview";
break;
case "images":
collection = site.images.list(0, max);
skin = "$Image#preview";
skin = "Image#preview";
break;
case "postings":
@ -481,7 +481,7 @@ function list_macro(param, id, limit) {
}
return true;
});
skin = "$Story#preview";
skin = "Story#preview";
break;
case "stories":
@ -490,7 +490,7 @@ function list_macro(param, id, limit) {
collection = stories.list().filter(function(item, index) {
return item.constructor === Story && filter(item, counter++);
});
skin = "$Story#preview";
skin = "Story#preview";
break;
case "tags":