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

Autogenerate :h dialog-list.

This commit is contained in:
Štěpán Němec
2011-07-26 23:47:37 +02:00
parent f92a3814d9
commit 76481ab23e
4 changed files with 10 additions and 96 deletions

View File

@@ -838,9 +838,18 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
template.map(iter(), util.identity)
}</dl>, <>{"\n\n"}</>) +
'\n</overlay>'];
addTags("index", util.httpGet("dactyl://help-overlay/index").responseXML);
overlayMap["gui"] = ['text/xml;charset=UTF-8',
'<?xml version="1.0"?>\n' +
'<overlay xmlns="' + NS + '">\n' +
'<dl insertafter="dialog-list">\n' +
template.map(config.dialogs, function ([name, val])
((!val[2]) || (val[2] && val[2]())) &&
<><dt>{name}</dt><dd>{val[0]}</dd></>, <>{"\n"}</>) +
'</dl>\n</overlay>'];
this.helpInitialized = true;
}
},