From 56c46abe99acac1f3a7d8631d78a0811d044ff7d Mon Sep 17 00:00:00 2001 From: Robert Gaggl Date: Mon, 15 Mar 2004 07:36:37 +0000 Subject: [PATCH] changed custom_action(): call getCustomSkins() to get the list containing the layouts custom skins plus all of any parent layout in the chain --- code/SkinMgr/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/SkinMgr/actions.js b/code/SkinMgr/actions.js index dcf7d43e..900d577b 100644 --- a/code/SkinMgr/actions.js +++ b/code/SkinMgr/actions.js @@ -25,7 +25,7 @@ function modified_action() { */ function custom_action() { res.data.title = getMessage("skin.mgr.listCustomTitle", {layoutTitle: this._parent.title}); - res.data.list = this.renderList(this.custom, req.action); + res.data.list = this.renderList(this.getCustomSkins(), req.action); res.data.body = this.renderSkinAsString("main"); res.handlers.context.renderSkin("page"); return; @@ -65,10 +65,10 @@ function edit_action() { if (!req.data.key) res.redirect(this.href()); var sp = new Object(); + var splitKey = req.data.key.split("."); var desc = this.getSkinDescription("skin", req.data.key); sp.title = desc[0]; sp.text = desc[1] ? desc[1] : " (" + getMessage("skin.customSkin") + ")"; - var splitKey = req.data.key.split("."); sp.skin = this.getSkinSource(splitKey[0], splitKey[1]); sp.action = req.data.action;