commit 67bccfc9fe77b70bdf29552714c8fa05e8f42917
parent 946c754ae721052ca04731e7df31df49438e1c30
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 18 Mar 2013 20:37:27 -0400
Only show annotation toolbar on pages that already have annotations
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 {