1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:17:59 +01:00

Fix MOW styling. Enable running cleanup code on bootstrapped disable. Re-enabling still does not work.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-24 12:39:04 -05:00
parent 794d711802
commit 0d8f23fea5
3 changed files with 30 additions and 22 deletions

View File

@@ -242,7 +242,9 @@ const CommandWidgets = Class("CommandWidgets", {
multilineOutput: Class.memoize(function () {
let elem = document.getElementById("dactyl-multiline-output");
elem.contentWindow.addEventListener("unload", function (event) { event.preventDefault(); }, true);
elem.contentDocument.body.id = "dactyl-multiline-output-content";
elem.contentWindow.addEventListener("load", function (event) {
elem.contentDocument.body.id = "dactyl-multiline-output-content";
}, false);
["copy", "copylink", "selectall"].forEach(function (tail) {
// some host apps use "hostPrefixContext-copy" ids
let xpath = "//xul:menuitem[contains(@id, '" + "ontext-" + tail + "') and not(starts-with(@id, 'dactyl-'))]";