- renamed parentimages_action to parent_action

- preview.skin of image was renamed to mgrlistitem.skin
This commit is contained in:
Robert Gaggl 2003-12-08 19:57:25 +00:00
parent 20f381a9b1
commit 237c5b61cb

View file

@ -1,12 +1,12 @@
/**
* display the images of the parent layout
*/
function parentimages_action() {
function parent_action() {
if (!this._parent.parent) {
res.message = new Exception("layoutNoParent");
res.redirect(this.href());
}
res.data.imagelist = renderList(this._parent.parent.images, "preview", 10, req.data.page);
res.data.imagelist = renderList(this._parent.parent.images, "mgrlistitem", 10, req.data.page);
res.data.pagenavigation = renderPageNavigation(this._parent.parent.images, this.href(req.action), 10, req.data.page);
res.data.title = "Images of layout '" + this._parent.parent.title + "'";
res.data.body = this.renderSkinAsString("main");