mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 20:04:13 +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(
|
||||
"./*[@toolbarname=" + util.escapeString(name, "'") + "]",
|
||||
document, toolbox).snapshotItem(0);
|
||||
toolbox).snapshotItem(0);
|
||||
|
||||
var toolbox = document.getElementById("navigator-toolbox");
|
||||
if (toolbox) {
|
||||
@@ -2139,7 +2139,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
completion.toolbar = function toolbar(context) {
|
||||
context.title = ["Toolbar"];
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user