1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 05:02:28 +01:00

Autogenerate the list of sanitizer items in :h :sanitize.

This commit is contained in:
Štěpán Němec
2011-10-07 09:54:42 +02:00
parent 1b6c979d57
commit 06b12136ec
2 changed files with 16 additions and 19 deletions

View File

@@ -1278,6 +1278,21 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
}</dl>
</overlay>;
});
cache.register("help/privacy.xml", function () {
default xml namespace = NS;
return '<?xml version="1.0"?>\n' +
<overlay xmlns={NS}>
<dl insertafter="sanitize-items">{
template.map(options.get("sanitizeitems").values
.sort(function (a, b) String.localeCompare(a.name, b.name)),
function ({ name, description })
<><dt>{name}</dt><dd>{template.linkifyHelp(description, true)}</dd></>,
<>{"\n"}</>)
}</dl>
</overlay>;
});
},
events: function () {
events.listen(window, dactyl, "events", true);