Remove obsolete popup code
This commit is contained in:
parent
2d9ae5b87f
commit
bc87ddf90a
4 changed files with 3 additions and 33 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue