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:
Robert Gaggl 2003-02-23 15:07:08 +00:00
parent f87eaab1e6
commit 55ea227ef3

View file

@ -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");
}