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

@ -407,16 +407,16 @@ function list_macro(param, id, limit) {
if (!id) { if (!id) {
return; return;
} }
limit || (limit = 25); limit || (limit = 25);
var max = Math.min(limit, 20); var max = Math.min(limit, 20);
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":