From 0859126bb4c4b1f7f9013bb372b800e7965f1b1d Mon Sep 17 00:00:00 2001 From: Robert Gaggl Date: Fri, 26 Apr 2002 08:19:19 +0000 Subject: [PATCH] added enableping_macro() (renders a checkbox for selecting weblog.com-ping or cleartext according to value) --- code/Site/macros.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/Site/macros.js b/code/Site/macros.js index ac0c45cb..30ee100a 100644 --- a/code/Site/macros.js +++ b/code/Site/macros.js @@ -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 */