From 79809caddc7fa4ee71d00c42aad5904f988b9cf8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 26 Apr 2008 19:55:06 +0000 Subject: [PATCH] - Allow screen position of integrationDocPrefs, addCitationDialog, and editBibliographyDialog to persist - Pressing Escape in empty search field now closes citation window --- chrome/content/zotero/addCitationDialog.js | 6 +++--- chrome/content/zotero/addCitationDialog.xul | 8 +++++--- chrome/content/zotero/bibliography.js | 2 +- chrome/content/zotero/editBibliographyDialog.xul | 5 +++-- chrome/content/zotero/integrationDocPrefs.xul | 5 +++-- chrome/content/zotero/selectItemsDialog.js | 4 ---- chrome/content/zotero/xpcom/integration.js | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/chrome/content/zotero/addCitationDialog.js b/chrome/content/zotero/addCitationDialog.js index a15586ec5..0dd9646b8 100644 --- a/chrome/content/zotero/addCitationDialog.js +++ b/chrome/content/zotero/addCitationDialog.js @@ -66,7 +66,7 @@ var Zotero_Citation_Dialog = new function () { io = window.arguments[0].wrappedJSObject; // find accept button - _acceptButton = document.getElementById("add-citation-dialog").getButton("accept"); + _acceptButton = document.getElementById("zotero-add-citation-dialog").getButton("accept"); _autoRegeneratePref = Zotero.Prefs.get("integration.autoRegenerate"); // if a style with sortable citations, present checkbox @@ -144,7 +144,7 @@ var Zotero_Citation_Dialog = new function () { _multipleSourcesOn = !_multipleSourcesOn; if(_multipleSourcesOn) { document.getElementById("multiple-sources").hidden = undefined; - document.getElementById("add-citation-dialog").width = "750"; + document.getElementById("zotero-add-citation-dialog").width = "750"; document.getElementById("multiple-sources-button").label = Zotero.getString("citation.singleSource"); window.sizeToContent(); window.moveTo((window.screenX-75), window.screenY); @@ -153,7 +153,7 @@ var Zotero_Citation_Dialog = new function () { _itemSelected(false); } else { document.getElementById("multiple-sources").hidden = true; - document.getElementById("add-citation-dialog").width = "600"; + document.getElementById("zotero-add-citation-dialog").width = "600"; document.getElementById("multiple-sources-button").label = Zotero.getString("citation.multipleSources"); window.sizeToContent(); window.moveTo((window.screenX+75), window.screenY); diff --git a/chrome/content/zotero/addCitationDialog.xul b/chrome/content/zotero/addCitationDialog.xul index 5393f199d..7c09fd799 100644 --- a/chrome/content/zotero/addCitationDialog.xul +++ b/chrome/content/zotero/addCitationDialog.xul @@ -27,7 +27,7 @@ + style="padding: 0" + persist="screenX screenY">