www

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

commit 5f89402ce634869d2acaa7c4fa2a5629fcad320d
parent 0e1df8b8b4c7b5e88e7c0814a7b105aab6b0f67d
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 27 Jan 2012 05:59:03 -0500

Refuse to open preferences in connector mode and close preferences when Zotero Standalone is opened

Diffstat:
Mchrome/content/zotero/preferences/preferences.js | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js @@ -74,6 +74,16 @@ var Zotero_Preferences = { function init() { + if(Zotero.isConnector) { + Zotero.activateStandalone(); + window.close(); + return; + } + + observerService.addObserver(function() { + if(Zotero.isConnector) window.close(); + }, "zotero-reloaded", false); + // Display the appropriate modifier keys for the platform var rows = document.getElementById('zotero-prefpane-keys').getElementsByTagName('row'); for (var i=0; i<rows.length; i++) {