www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 28301ea45fe8709b2553a4792232ae45a6f25f55
parent c152e81bed308f0d31cd1d3a36cbd6607fedb3d4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 25 May 2015 23:36:24 -0400

Center the site-specific Quick Copy and proxy editing windows

On OS X these show up as sheets, but on Windows without this flag they
appear in the top-left of the screen.

Diffstat:
Mchrome/content/zotero/preferences/preferences_export.js | 3++-
Mchrome/content/zotero/preferences/preferences_proxies.js | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences_export.js b/chrome/content/zotero/preferences/preferences_export.js @@ -177,7 +177,8 @@ Zotero_Preferences.Export = { } var io = {domain: domain, format: format, ok: false}; - window.openDialog('chrome://zotero/content/preferences/quickCopySiteEditor.xul', "zotero-preferences-quickCopySiteEditor", "chrome, modal", io); + window.openDialog('chrome://zotero/content/preferences/quickCopySiteEditor.xul', + "zotero-preferences-quickCopySiteEditor", "chrome,modal,centerscreen", io); if (!io.ok) { return; diff --git a/chrome/content/zotero/preferences/preferences_proxies.js b/chrome/content/zotero/preferences/preferences_proxies.js @@ -72,7 +72,8 @@ Zotero_Preferences.Proxies = { showProxyEditor: function (index) { if(index == -1) return; window.openDialog('chrome://zotero/content/preferences/proxyEditor.xul', - "zotero-preferences-proxyEditor", "chrome, modal", index !== undefined ? this._proxies[index] : null); + "zotero-preferences-proxyEditor", "chrome,modal,centerscreen", + index !== undefined ? this._proxies[index] : null); this.refreshProxyList(); },