parent
01dc397afd
commit
5f6d6da154
1 changed files with 8 additions and 3 deletions
|
@ -276,9 +276,14 @@ var ZoteroContextPane = new function () {
|
||||||
|
|
||||||
if (splitter.getAttribute('state') != 'collapsed') {
|
if (splitter.getAttribute('state') != 'collapsed') {
|
||||||
if (_panesDeck.selectedIndex == 1) {
|
if (_panesDeck.selectedIndex == 1) {
|
||||||
var node = _notesPaneDeck.selectedPanel;
|
var libraryContext = _notesPaneDeck.selectedPanel;
|
||||||
if (node.selectedIndex == 1) {
|
// Global note
|
||||||
return node.querySelector('note-editor');
|
if (libraryContext.selectedIndex == 1) {
|
||||||
|
return libraryContext.querySelector('note-editor');
|
||||||
|
}
|
||||||
|
// Tab specific child note
|
||||||
|
else if (libraryContext.selectedIndex == 2) {
|
||||||
|
return libraryContext.querySelector('.zotero-context-pane-tab-notes-deck').selectedPanel.querySelector('zoteronoteeditor');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue