Only show annotation toolbar on pages that already have annotations
This commit is contained in:
parent
946c754ae7
commit
67bccfc9fe
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ var Zotero_Browser = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// set annotation bar status
|
// set annotation bar status
|
||||||
if(tab.page.annotations) {
|
if(tab.page.annotations && tab.page.annotations.annotations.length) {
|
||||||
document.getElementById('zotero-annotate-tb').hidden = false;
|
document.getElementById('zotero-annotate-tb').hidden = false;
|
||||||
toggleMode();
|
toggleMode();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue