changed sys_frontSite_macro() because root.sys_frontSite now contains the site-object instead of just the alias
This commit is contained in:
parent
df15c3e76e
commit
1e122ec3b4
1 changed files with 6 additions and 3 deletions
|
@ -290,9 +290,12 @@ function shortdateformat_macro(param) {
|
|||
function sys_frontSite_macro(param) {
|
||||
if (!isUserSysAdmin())
|
||||
return;
|
||||
if (param.as == "editor")
|
||||
renderInputText(this.createInputParam("sys_frontSite",param));
|
||||
else
|
||||
if (param.as == "editor") {
|
||||
var inputParam = new Object();
|
||||
inputParam.name = "sys_frontSite";
|
||||
inputParam.value = root.sys_frontSite ? root.sys_frontSite.alias : null;
|
||||
renderInputText(inputParam);
|
||||
} else
|
||||
res.write (root.sys_frontSite);
|
||||
return;
|
||||
}
|
Loading…
Add table
Reference in a new issue