From f289de288797bb3b6e4ce3e055aa6aeabe74b5b8 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 5 Jan 2011 17:12:07 -0500 Subject: [PATCH] Fix some recently broken :dialogs. --- common/modules/base.jsm | 2 +- pentadactyl/content/config.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/modules/base.jsm b/common/modules/base.jsm index ff16303f..6c1f0ee2 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -330,7 +330,7 @@ function deprecated(reason, fn) { return func.apply(this, arguments); } deprecatedMethod.seen = { - "chrome://dactyl/content/javascript.js": true, + "resource://dactyl/javascript.jsm": true, "resource://dactyl/util.jsm": true }; diff --git a/pentadactyl/content/config.js b/pentadactyl/content/config.js index bfa17ed4..fdf8947f 100644 --- a/pentadactyl/content/config.js +++ b/pentadactyl/content/config.js @@ -59,11 +59,11 @@ var Config = Module("config", ConfigBase, { preferences: ["Show Firefox preferences dialog", function () { window.openPreferences(); }], printpreview: ["Preview the page before printing", - function () { PrintUtils.printPreview(window.PrintPreviewListener || onEnterPrintPreview, window.onExitPrintPreview); }], + function () { window.PrintUtils.printPreview(window.PrintPreviewListener || window.onEnterPrintPreview, window.onExitPrintPreview); }], printsetup: ["Setup the page size and orientation before printing", - function () { PrintUtils.showPageSetup(); }], + function () { window.PrintUtils.showPageSetup(); }], print: ["Show print dialog", - function () { PrintUtils.print(); }], + function () { window.PrintUtils.print(); }], saveframe: ["Save frame to disk", function () { window.saveFrameDocument(); }], savepage: ["Save page to disk", @@ -71,7 +71,7 @@ var Config = Module("config", ConfigBase, { searchengines: ["Manage installed search engines", function () { window.openDialog("chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen"); }], selectionsource: ["View selection source", - function () { buffer.viewSelectionSource(); }], + function () { modules.buffer.viewSelectionSource(); }], venkman: ["The JavaScript debugger", function () { dactyl.assert("start_venkman" in window, "Venkman is not installed"); window.start_venkman() }, function () "start_venkman" in window]