www

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

commit 9261f8d5fb2cefb2f59ac05c5bc2430ec8aba674
parent 91024eb87cdd427fc530571259ce95f0d01d4378
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 17 Aug 2011 04:13:42 +0000

- 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


Diffstat:
Mchrome/content/zotero/downloadOverlay.js | 4++++
Mchrome/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 @@ -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 @@ -39,9 +39,9 @@ <script type="application/x-javascript" src="downloadOverlay.js"/> <radiogroup id="mode"> <vbox insertbefore="save" id="zotero-container" flex="1" hidden="true"> - <radio id="zotero-radio" label="&zotero.downloadManager.label;"/> + <radio id="zotero-radio" label="&zotero.downloadManager.label;" disabled="true"/> <vbox style="margin-left: 10px"> - <checkbox id="zotero-recognizePDF" hidden="true" persist="checked"/> + <checkbox id="zotero-recognizePDF" hidden="true" persist="checked" disabled="true"/> </vbox> </vbox> </radiogroup>