changed online_macro(): added support for optional attributes "yes" and "no" (so users can now define the text that should appear in either case)
This commit is contained in:
parent
f87eaab1e6
commit
55ea227ef3
1 changed files with 3 additions and 1 deletions
|
@ -217,8 +217,10 @@ function lastupdate_macro(param) {
|
|||
function online_macro(param) {
|
||||
if (param.as == "editor")
|
||||
renderInputCheckbox(this.createInputParam("online",param));
|
||||
else if (this.online)
|
||||
res.write(param.yes ? param.yes : "yes");
|
||||
else
|
||||
res.write(this.online ? "yes" : "no");
|
||||
res.write(param.no ? param.no : "no");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue