commit bc87ddf90a3976621b3f2f20f5f49aff922ecb8b
parent 2d9ae5b87f7d7dad06a1884d475276b293f35e32
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 25 Aug 2009 06:24:29 +0000
Remove obsolete popup code
Diffstat:
4 files changed, 3 insertions(+), 33 deletions(-)
diff --git a/chrome/content/zotero/addCitationDialog.js b/chrome/content/zotero/addCitationDialog.js
@@ -132,15 +132,6 @@ var Zotero_Citation_Dialog = new function () {
_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);
- }
}
/*
diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js
@@ -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("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);
- }
}
/*
diff --git a/chrome/content/zotero/editBibliographyDialog.js b/chrome/content/zotero/editBibliographyDialog.js
@@ -47,15 +47,6 @@ var Zotero_Bibliography_Dialog = new function () {
// load bibliography entires
_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);
- }
}
/*
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -30,7 +30,6 @@ Zotero.Integration = new function() {
var _fifoFile, _osascriptFile;
this.sessions = {};
- this.usePopup = false;
/**
* 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"]
.getService(Components.interfaces.nsIWindowWatcher)
.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) {
var itemID = io.dataOut[0];
@@ -1114,8 +1113,7 @@ Zotero.Integration.Session.prototype.editCitation = function(index, noteIndex, c
.getService(Components.interfaces.nsIWindowWatcher)
.openWindow(
null, 'chrome://zotero/content/addCitationDialog.xul', '',
- 'chrome,modal,centerscreen,resizable=yes'
- + (Zotero.Integration.usePopup ? ',popup' : ''),
+ 'chrome,modal,centerscreen,resizable=yes',
io
);
@@ -1276,8 +1274,7 @@ Zotero.Integration.Session.prototype.editBibliography = function() {
.getService(Components.interfaces.nsIWindowWatcher)
.openWindow(
null, 'chrome://zotero/content/editBibliographyDialog.xul', '',
- 'chrome,modal,centerscreen,resizable=yes'
- + (Zotero.Integration.usePopup ? ',popup' : ''),
+ 'chrome,modal,centerscreen,resizable=yes',
io,
true
);