changed custom_action(): call getCustomSkins() to get the list containing
the layouts custom skins plus all of any parent layout in the chain
This commit is contained in:
parent
51c5d3ece6
commit
56c46abe99
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue