Bug 172094 - Add a preference for browser-focus code.

ChatZilla only.
r=samuel@sieb.net
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-12-23 20:54:21 +00:00
Родитель 0c060ce342
Коммит 3f560bee58
3 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1682,7 +1682,8 @@ function cmdGotoURL(e)
return;
}
window.focus();
if (client.prefs["link.focus"])
window.focus();
if (e.command.name == "goto-url-newtab")
{
if (client.host == "Mozilla") {

Просмотреть файл

@ -119,6 +119,7 @@ function initPrefs()
["initialURLs", [], "startup.initialURLs"],
["initialScripts", [getURLSpecFromFile(scriptPath.path)],
"startup.initialScripts"],
["link.focus", true, "global.links"],
["log", false, ".log"],
["logFileName", makeLogNameClient, ".log"],
["logFile.client", "client.$y-$m-$d.log", ".log"],

Просмотреть файл

@ -1086,6 +1086,8 @@ pref.initialURLs.label = Auto-connect URLs
pref.initialURLs.help = A list of IRC URLs that Chatzilla should connect to (load) when starting. These will not be loaded if Chatzilla is started because of a URL that goes somewhere (e.g. irc://moznet/).
pref.initialScripts.label = Auto-load scripts
pref.initialScripts.help = When Chatzilla starts, it loads all the scripts listed here. If an item is a directory, however, it loads "init.js" from that directory, and any subdirectory.
pref.link.focus.label = Focus browser when opening links
pref.link.focus.help = Moves the focus to the browser window when opening URLs from ChatZilla.
pref.log.label = Log this view
pref.log.help = Makes Chatzilla log this view. The log file is usually stored in your profile, which can be overriden with "Profile path" (for the base path) or "Log file name" for a specific view's log.
pref.logFileName.label = Log file name