Fix broken doc prefs window

This commit is contained in:
Dan Stillman 2008-12-01 20:51:16 +00:00
parent 01748aab01
commit f95291af88

View file

@ -799,12 +799,14 @@ Zotero.Integration.SOAP_Compat = new function() {
io.useBookmarks = session.prefs.fieldType;
}
watcher.openWindow(
null, 'chrome://zotero/content/integrationDocPrefs.xul', '',
'chrome,modal,centerscreen'
+ (Zotero.Integration.usePopup ? ',popup' : ''),
io, true
);
Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher)
.openWindow(
null, 'chrome://zotero/content/integrationDocPrefs.xul', '',
'chrome,modal,centerscreen'
+ (Zotero.Integration.usePopup ? ',popup' : ''),
io, true
);
session.prefs.useEndnotes = io.useEndnotes;
session.prefs.fieldType = io.useBookmarks;
session.setStyle(io.style, session.prefs);