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:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user