added enableping_macro() (renders a checkbox for selecting weblog.com-ping or cleartext according to value)

This commit is contained in:
Robert Gaggl 2002-04-26 08:19:19 +00:00
parent d11e837772
commit 0859126bb4

View file

@ -355,6 +355,19 @@ function showarchive_macro(param) {
res.write(param.suffix);
}
/**
* macro rendering enableping-flag of weblog
*/
function enableping_macro(param) {
res.write(param.prefix)
if (param.as == "editor")
this.renderInputCheckbox(this.createInputParam("enableping",param));
else
res.write(parseInt(this.enableping,10) ? "yes" : "no");
res.write(param.suffix);
}
/**
* macro rendering default longdateformat of weblog
*/