From 67bccfc9fe77b70bdf29552714c8fa05e8f42917 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 18 Mar 2013 20:37:27 -0400 Subject: [PATCH] Only show annotation toolbar on pages that already have annotations --- chrome/content/zotero/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index 4a1d0b576..05b065446 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -401,7 +401,7 @@ var Zotero_Browser = new function() { } // set annotation bar status - if(tab.page.annotations) { + if(tab.page.annotations && tab.page.annotations.annotations.length) { document.getElementById('zotero-annotate-tb').hidden = false; toggleMode(); } else {