diff --git a/chrome/content/zotero/addCitationDialog.js b/chrome/content/zotero/addCitationDialog.js index 5a8fd4ade..d54c9d72b 100644 --- a/chrome/content/zotero/addCitationDialog.js +++ b/chrome/content/zotero/addCitationDialog.js @@ -60,9 +60,6 @@ var Zotero_Citation_Dialog = new function () { document.getElementById("multiple-sources-button").label = Zotero.getString("citation.multipleSources"); document.getElementById("show-editor-button").label = Zotero.getString("citation.showEditor"); - if(Zotero.isWin) { - document.getElementById("zotero-select-items-container").style.border = "1px solid black"; - } io = window.arguments[0].wrappedJSObject; // find accept button @@ -135,6 +132,15 @@ 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/advancedSearch.js b/chrome/content/zotero/advancedSearch.js index b63b3f319..a9ba4ee17 100644 --- a/chrome/content/zotero/advancedSearch.js +++ b/chrome/content/zotero/advancedSearch.js @@ -124,6 +124,15 @@ var ZoteroAdvancedSearch = new function() { } + this.startDrag = function (event, element) { + if (Zotero.isFx2 || Zotero.isFx30) { + nsDragAndDrop.startDrag(event, element); + return; + } + element.onDragStart(event); + } + + function onUnload() { // Unregister search from Notifier if (this.itemsView) { diff --git a/chrome/content/zotero/advancedSearch.xul b/chrome/content/zotero/advancedSearch.xul index f166fabd6..9b7e0c3d2 100644 --- a/chrome/content/zotero/advancedSearch.xul +++ b/chrome/content/zotero/advancedSearch.xul @@ -39,7 +39,7 @@ + ondraggesture="if (event.target.localName == 'treechildren') { Zotero.debug('starting'); ZoteroAdvancedSearch.startDrag(event, ZoteroAdvancedSearch.itemsView); }">