This commit is contained in:
scott%scott-macgregor.org 2004-02-04 07:33:27 +00:00
Родитель 1992d6919c
Коммит 4218e18c96
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -119,13 +119,13 @@ function openOptionsDialog(containerID, paneURL, itemID)
const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1";
const kWindowMediatorIID = Components.interfaces.nsIWindowMediator;
const kWindowMediator = Components.classes[kWindowMediatorContractID].getService(kWindowMediatorIID);
var lastPrefWindow = kWindowMediator.getMostRecentWindow("mozilla:preferences");
var lastPrefWindow = kWindowMediator.getMostRecentWindow("Mail:Options");
if (lastPrefWindow)
lastPrefWindow.focus();
else
openDialog("chrome://communicator/content/pref/pref.xul","PrefWindow",
"chrome,titlebar,resizable=yes", paneURL, containerID, itemID);
"chrome,titlebar,resizable,modal", paneURL, containerID, itemID);
}
function SetBusyCursor(window, enable)

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

@ -10,6 +10,7 @@
title="&prefWindow.title;"
style="&prefWindow.size;"
onload="Startup();"
windowtype="Mail:Options"
ondialogaccept="return hPrefWindow.onOK(event);"
ondialogcancel="return hPrefWindow.onCancel(event);"
persist="width height screenX screenY">