mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:27:58 +01:00
made :help and :prefs work for muttator again, thanks temerako
This commit is contained in:
@@ -127,7 +127,8 @@ const liberator = (function () //{{{
|
|||||||
function ()
|
function ()
|
||||||
{
|
{
|
||||||
liberator.open("chrome://mozapps/content/extensions/extensions.xul",
|
liberator.open("chrome://mozapps/content/extensions/extensions.xul",
|
||||||
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("addons") != -1) ?
|
(liberator.options.newtab &&
|
||||||
|
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("addons") != -1)) ?
|
||||||
liberator.NEW_TAB: liberator.CURRENT_TAB);
|
liberator.NEW_TAB: liberator.CURRENT_TAB);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -192,7 +193,8 @@ const liberator = (function () //{{{
|
|||||||
if (special) // open javascript console
|
if (special) // open javascript console
|
||||||
{
|
{
|
||||||
liberator.open("chrome://global/content/console.xul",
|
liberator.open("chrome://global/content/console.xul",
|
||||||
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("javascript") != -1) ?
|
(liberator.options.newtab &&
|
||||||
|
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("javascript") != -1)) ?
|
||||||
liberator.NEW_TAB : liberator.CURRENT_TAB);
|
liberator.NEW_TAB : liberator.CURRENT_TAB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -605,7 +607,7 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
help: function(topic)
|
help: function(topic)
|
||||||
{
|
{
|
||||||
var where = (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("help") != -1) ?
|
var where = (liberator.options.newtab && (liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("help") != -1)) ?
|
||||||
liberator.NEW_TAB : liberator.CURRENT_TAB;
|
liberator.NEW_TAB : liberator.CURRENT_TAB;
|
||||||
|
|
||||||
function jumpToTag(file, tag)
|
function jumpToTag(file, tag)
|
||||||
|
|||||||
@@ -45,10 +45,10 @@ liberator.config = {
|
|||||||
isComposeWindow: false,
|
isComposeWindow: false,
|
||||||
|
|
||||||
dialogs: [
|
dialogs: [
|
||||||
/*["about", "About Firefox",
|
["about", "About Thunderbird", //XXX: Shredder ?
|
||||||
function() { openDialog("chrome://browser/content/aboutDialog.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
|
function() { openAboutDialog(); }],
|
||||||
["addons", "Manage Add-ons",
|
["addons", "Manage Add-ons",
|
||||||
function() { BrowserOpenAddonsMgr(); }],*/
|
function() { openAddonsMgr(); }],
|
||||||
["checkupdates", "Check for updates",
|
["checkupdates", "Check for updates",
|
||||||
function() { checkForUpdates(); }],
|
function() { checkForUpdates(); }],
|
||||||
/*["cleardata", "Clear private data",
|
/*["cleardata", "Clear private data",
|
||||||
|
|||||||
@@ -299,7 +299,8 @@ liberator.Options = function () //{{{
|
|||||||
if (special) // open firefox settings gui dialog
|
if (special) // open firefox settings gui dialog
|
||||||
{
|
{
|
||||||
liberator.open("about:config",
|
liberator.open("about:config",
|
||||||
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1) ?
|
(liberator.options.newtab &&
|
||||||
|
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1)) ?
|
||||||
liberator.NEW_TAB : liberator.CURRENT_TAB);
|
liberator.NEW_TAB : liberator.CURRENT_TAB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user