diff options
author | Doug Kearns <dougkearns@gmail.com> | 2009-03-05 01:27:41 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2009-03-05 01:27:41 +1100 |
commit | 9d3a5ec9398b5183048647f99df75badf59136b7 (patch) | |
tree | 2394d89ad7b096b0da04f7447225c87a53d1c67d | |
parent | 1117fc7ad0c86dfee5df13c21ecc1119954055b4 (diff) | |
download | pentadactyl-9d3a5ec9398b5183048647f99df75badf59136b7.tar.gz |
Fix help links whose destination is the current page. (#169)
-rw-r--r-- | common/content/liberator.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/content/liberator.js b/common/content/liberator.js index 9433eab8..f2ddc6b6 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -1428,7 +1428,11 @@ window.addEventListener("liberatorHelpLink", function (event) { if (tag) var page = liberator.findHelp(tag); if (page) + { elem.href = "chrome://liberator/locale/" + page; + if (buffer.URL.replace(/#.*/, "") == elem.href.replace(/#.*/, "")) // XXX + setTimeout(function () { content.postMessage("fragmentChange", "*"); }, 0); + } }, true, true); |