mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 04:55:46 +01:00
Fix the :toolbar* commands. Closes issue #288.
This commit is contained in:
@@ -1942,7 +1942,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
|
|
||||||
function findToolbar(name) util.evaluateXPath(
|
function findToolbar(name) util.evaluateXPath(
|
||||||
"./*[@toolbarname=" + util.escapeString(name, "'") + "]",
|
"./*[@toolbarname=" + util.escapeString(name, "'") + "]",
|
||||||
document, toolbox).snapshotItem(0);
|
toolbox).snapshotItem(0);
|
||||||
|
|
||||||
var toolbox = document.getElementById("navigator-toolbox");
|
var toolbox = document.getElementById("navigator-toolbox");
|
||||||
if (toolbox) {
|
if (toolbox) {
|
||||||
@@ -2139,7 +2139,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
completion.toolbar = function toolbar(context) {
|
completion.toolbar = function toolbar(context) {
|
||||||
context.title = ["Toolbar"];
|
context.title = ["Toolbar"];
|
||||||
context.keys = { text: function (item) item.getAttribute("toolbarname"), description: function () "" };
|
context.keys = { text: function (item) item.getAttribute("toolbarname"), description: function () "" };
|
||||||
context.completions = util.evaluateXPath("./*[@toolbarname]", document, toolbox);
|
context.completions = util.evaluateXPath("./*[@toolbarname]", toolbox);
|
||||||
};
|
};
|
||||||
|
|
||||||
completion.window = function window(context) {
|
completion.window = function window(context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user