mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 06:15:47 +01:00
Stuff.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user