bug 65241, add 'download more' button to Content Pack pref panel.

make preferences dialog non-modal to circumvent mac modality bugs.
r=matt, sr=blake
This commit is contained in:
ben%netscape.com 2001-07-06 05:52:34 +00:00
Родитель c33c3dad5c
Коммит 7d82f7f384
1 изменённых файлов: 2 добавлений и 9 удалений

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

@ -126,14 +126,8 @@ function goEditCardDialog(abURI, card, okCallback, abCardURI)
function goPreferences(containerID, paneURL, itemID)
{
var modal, resizable;
var resizable;
var pref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref);
try {
modal = pref.GetBoolPref( "browser.prefWindowModal");
}
catch (e) {
modal = true;
}
try {
// We are resizable ONLY if in box debugging mode, because in
// this special debug mode it is often impossible to see the
@ -152,9 +146,8 @@ function goPreferences(containerID, paneURL, itemID)
if (lastPrefWindow)
lastPrefWindow.focus();
else {
var modality = modal ? "yes" : "no";
var resizability = resizable ? "yes" : "no";
var features = "chrome,titlebar,modal=" + modality + ",resizable=" + resizability;
var features = "chrome,titlebar,resizable=" + resizability;
openDialog("chrome://communicator/content/pref/pref.xul","PrefWindow",
features, paneURL, containerID, itemID);
}