1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-08 00:53:33 +02:00

Fix help tags.

This commit is contained in:
Kris Maglione
2009-11-05 04:23:29 -05:00
parent 336eb4fefa
commit 76e9b8c0ed
2 changed files with 3 additions and 3 deletions

View File

@@ -1452,8 +1452,8 @@ const liberator = (function () //{{{
function addTags(file, doc) function addTags(file, doc)
{ {
doc = XSLT.transformToDocument(doc); doc = XSLT.transformToDocument(doc);
for (let elem in util.evaluateXPath("//liberator:tag/text()", doc)) for (let elem in util.evaluateXPath("//xhtml:a/@id", doc))
tagMap[elem.textContent] = file; tagMap[elem.value] = file;
} }
const XSLT = XSLTProcessor("chrome://liberator/content/help.xsl"); const XSLT = XSLTProcessor("chrome://liberator/content/help.xsl");

View File

@@ -197,7 +197,7 @@ const config = { //{{{
function () function ()
{ {
if (!document.getElementById("sidebar-box").hidden) if (!document.getElementById("sidebar-box").hidden)
toggleSidebar(); window.toggleSidebar();
}, },
{ argCount: "0" }); { argCount: "0" });