1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-05 08:05:44 +01:00
This commit is contained in:
Kris Maglione
2011-07-26 21:06:29 -04:00
parent 76481ab23e
commit cff57155e6

View File

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