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

newtab option, and better :tab behavior, thanks teramako

This commit is contained in:
Martin Stubenschrott
2008-05-02 08:54:30 +00:00
parent 5a28cd8948
commit 7b7d39cc8d
6 changed files with 69 additions and 16 deletions

View File

@@ -296,18 +296,15 @@ liberator.Options = function () //{{{
{
if (!args)
{
// TODO: copy these snippets to more function which should work with :tab xxx
if (modifiers && modifiers.inTab)
if (special) // open firefox settings gui dialog
{
liberator.open(special ? "about:config" :
"chrome://browser/content/preferences/preferences.xul", liberator.NEW_TAB);
liberator.open("about:config",
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1) ?
liberator.NEW_TAB : liberator.CURRENT_TAB);
}
else
{
if (special) // open firefox settings gui dialog
liberator.open("about:config", liberator.CURRENT_TAB);
else
openPreferences();
openPreferences();
}
}
else