From da6143f4aae6af35f60b8230b82f649b3b0cbd05 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 24 Jun 2003 01:01:35 +0000 Subject: Fix for bug 204631: enhances config.cgi to generate a list of queryable fields so third-party clients can populate search forms with the list. r=gerv a=myk --- template/en/default/config.js.tmpl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'template/en/default/config.js.tmpl') diff --git a/template/en/default/config.js.tmpl b/template/en/default/config.js.tmpl index 26d089fd6..a74c5d34d 100644 --- a/template/en/default/config.js.tmpl +++ b/template/en/default/config.js.tmpl @@ -101,8 +101,18 @@ var component_exceptions = new Array( // // ^^^^ ); +// Queryable Fields +// ================ +[% PROCESS "global/field-descs.none.tmpl" %] +var field = [ +[% FOREACH x = field %] + { name: '[% x.name FILTER js %]', + description: '[% (field_descs.${x.name} OR x.description) FILTER js %]' }, +[% END %] +]; + // Deprecated Variables -// ================================ +// ==================== // // Other names for various variables. These are deprecated // and could go away at any time. Use them at your own risk! -- cgit v1.2.3-24-g4f1b