commit ebd7d5a155f736d2442fc9f5182bc43bd20ec86b parent 925f09232d41b290c67a1313aaf38c925f027c00 Author: Simon Kornblith <simon@simonster.com> Date: Fri, 26 Aug 2011 22:27:02 +0000 Don't attempt to retrieve metadata for PDF when the option is unavailable Diffstat:
| M | chrome/content/zotero/downloadOverlay.js | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/downloadOverlay.js b/chrome/content/zotero/downloadOverlay.js @@ -70,7 +70,8 @@ var Zotero_DownloadOverlay = new function() { } catch(e) {}; var recognizePDF = document.getElementById('zotero-recognizePDF').checked - && !document.getElementById('zotero-recognizePDF').hidden; + && !document.getElementById('zotero-recognizePDF').hidden + && !document.getElementById('zotero-recognizePDF').disabled; // set up callback var callback = function(item) { @@ -193,6 +194,9 @@ var Zotero_DownloadOverlay = new function() { recognizePDF.label = Zotero.getString("pane.items.menu.recognizePDF"); recognizePDF.hidden = false; recognizePDF.disabled = true; + if(!Zotero.Fulltext.pdfConverterIsRegistered()) { + recognizePDF.checked = false; + } } }; }