From 9261f8d5fb2cefb2f59ac05c5bc2430ec8aba674 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 17 Aug 2011 04:13:42 +0000 Subject: [PATCH] - Hide download option when in connector mode (will consider implementing in the connector instead) - Disable radio, so it's not possible to focus it with the keyboard --- chrome/content/zotero/downloadOverlay.js | 4 ++++ chrome/content/zotero/downloadOverlay.xul | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/downloadOverlay.js b/chrome/content/zotero/downloadOverlay.js index 727295b49b..6567db9a27 100644 --- a/chrome/content/zotero/downloadOverlay.js +++ b/chrome/content/zotero/downloadOverlay.js @@ -130,6 +130,8 @@ var Zotero_DownloadOverlay = new function() { * Called when the save dialog is opened */ this.init = function() { + if(Zotero.isConnector) return; + // Disable for filetypes people probably don't want to save var show = false; var mimeType = dialog.mLauncher.MIMEInfo.MIMEType.toLowerCase(); @@ -137,10 +139,12 @@ var Zotero_DownloadOverlay = new function() { if(typeof elem === "string") { if(elem === mimeType) { document.getElementById('zotero-container').hidden = false; + document.getElementById('zotero-radio').disabled = false; break; } } else if(elem.test(mimeType)) { document.getElementById('zotero-container').hidden = false; + document.getElementById('zotero-radio').disabled = false; break; } } diff --git a/chrome/content/zotero/downloadOverlay.xul b/chrome/content/zotero/downloadOverlay.xul index 33bc3e71a6..0c605bb867 100644 --- a/chrome/content/zotero/downloadOverlay.xul +++ b/chrome/content/zotero/downloadOverlay.xul @@ -39,9 +39,9 @@