Only show annotation toolbar on pages that already have annotations

This commit is contained in:
Simon Kornblith 2013-03-18 20:37:27 -04:00
parent 946c754ae7
commit 67bccfc9fe

View file

@ -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 {