Remove obsolete popup code

This commit is contained in:
Simon Kornblith 2009-08-25 06:24:29 +00:00
parent 2d9ae5b87f
commit bc87ddf90a
4 changed files with 3 additions and 33 deletions

View file

@ -132,15 +132,6 @@ var Zotero_Citation_Dialog = new function () {
_updateAccept(); _updateAccept();
} }
// Center citation popups manually after a delay when using a popup, since
// popups aren't resizable and there might be persisted positions
if (Zotero.Integration.usePopup) {
document.getElementsByTagName("dialog")[0].style.border = "1px solid black";
setTimeout(function () {
window.centerWindowOnScreen();
}, 1);
}
} }
/* /*

View file

@ -113,15 +113,6 @@ var Zotero_File_Interface_Bibliography = new function() {
document.getElementById("fields-file-format-notice").textContent = Zotero.getString("integration."+formatOption+".fileFormatNotice"); document.getElementById("fields-file-format-notice").textContent = Zotero.getString("integration."+formatOption+".fileFormatNotice");
document.getElementById("bookmarks-file-format-notice").textContent = Zotero.getString("integration.fields.fileFormatNotice"); document.getElementById("bookmarks-file-format-notice").textContent = Zotero.getString("integration.fields.fileFormatNotice");
} }
// Center citation popups manually after a delay when using a popup, since
// popups aren't resizable and there might be persisted positions
if (Zotero.Integration.usePopup) {
document.getElementsByTagName("dialog")[0].style.border = "1px solid black";
setTimeout(function () {
window.centerWindowOnScreen();
}, 1);
}
} }
/* /*

View file

@ -47,15 +47,6 @@ var Zotero_Bibliography_Dialog = new function () {
// load bibliography entires // load bibliography entires
_loadItems(); _loadItems();
// Center citation popups manually after a delay when using a popup, since
// popups aren't resizable and there might be persisted positions
if (Zotero.Integration.usePopup) {
document.getElementsByTagName("dialog")[0].style.border = "1px solid black";
setTimeout(function () {
window.centerWindowOnScreen();
}, 1);
}
} }
/* /*

View file

@ -30,7 +30,6 @@ Zotero.Integration = new function() {
var _fifoFile, _osascriptFile; var _fifoFile, _osascriptFile;
this.sessions = {}; this.sessions = {};
this.usePopup = false;
/** /**
* Initializes the pipe used for integration on non-Windows platforms. * Initializes the pipe used for integration on non-Windows platforms.
@ -774,7 +773,7 @@ Zotero.Integration.Session.prototype.reselectItem = function(exception) {
Components.classes["@mozilla.org/embedcomp/window-watcher;1"] Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher) .getService(Components.interfaces.nsIWindowWatcher)
.openWindow(null,'chrome://zotero/content/selectItemsDialog.xul', '', .openWindow(null,'chrome://zotero/content/selectItemsDialog.xul', '',
'chrome,modal,centerscreen,resizable=yes' + (Zotero.isWin ? ',popup' : ''), io, true); 'chrome,modal,centerscreen,resizable=yes', io, true);
if(io.dataOut && io.dataOut.length) { if(io.dataOut && io.dataOut.length) {
var itemID = io.dataOut[0]; var itemID = io.dataOut[0];
@ -1114,8 +1113,7 @@ Zotero.Integration.Session.prototype.editCitation = function(index, noteIndex, c
.getService(Components.interfaces.nsIWindowWatcher) .getService(Components.interfaces.nsIWindowWatcher)
.openWindow( .openWindow(
null, 'chrome://zotero/content/addCitationDialog.xul', '', null, 'chrome://zotero/content/addCitationDialog.xul', '',
'chrome,modal,centerscreen,resizable=yes' 'chrome,modal,centerscreen,resizable=yes',
+ (Zotero.Integration.usePopup ? ',popup' : ''),
io io
); );
@ -1276,8 +1274,7 @@ Zotero.Integration.Session.prototype.editBibliography = function() {
.getService(Components.interfaces.nsIWindowWatcher) .getService(Components.interfaces.nsIWindowWatcher)
.openWindow( .openWindow(
null, 'chrome://zotero/content/editBibliographyDialog.xul', '', null, 'chrome://zotero/content/editBibliographyDialog.xul', '',
'chrome,modal,centerscreen,resizable=yes' 'chrome,modal,centerscreen,resizable=yes',
+ (Zotero.Integration.usePopup ? ',popup' : ''),
io, io,
true true
); );