mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Citation Explorer: misc renaming/cleanup
This commit is contained in:
parent
ab849085d7
commit
cf058891c1
1 changed files with 3 additions and 3 deletions
|
|
@ -366,7 +366,7 @@ window.ZoteroCitationExplorer = {
|
|||
document.querySelector('#button-show-in-zotero').addEventListener('click', this.onItemActivate.bind(this));
|
||||
document.querySelector('#button-relink-item').addEventListener('click', this.onItemRelink.bind(this));
|
||||
|
||||
let lastTranslationTarget = Zotero.Prefs.get('documentCitations.lastAddToTarget');
|
||||
let lastTranslationTarget = Zotero.Prefs.get('citationExplorer.lastAddToTarget');
|
||||
if (lastTranslationTarget) {
|
||||
let id = parseInt(lastTranslationTarget.substr(1));
|
||||
if (lastTranslationTarget[0] == "L") {
|
||||
|
|
@ -797,7 +797,7 @@ window.ZoteroCitationExplorer = {
|
|||
menu.removeChild(menu.firstChild);
|
||||
}
|
||||
|
||||
let target = Zotero.Prefs.get('documentCitations.lastAddToTarget');
|
||||
let target = Zotero.Prefs.get('citationExplorer.lastAddToTarget');
|
||||
if (!target) {
|
||||
target = "L" + Zotero.Libraries.userLibraryID;
|
||||
}
|
||||
|
|
@ -841,7 +841,7 @@ window.ZoteroCitationExplorer = {
|
|||
|
||||
setAddToTarget(translationTarget) {
|
||||
_addToTarget = translationTarget;
|
||||
Zotero.Prefs.set('documentCitations.lastAddToTarget', translationTarget.treeViewID);
|
||||
Zotero.Prefs.set('citationExplorer.lastAddToTarget', translationTarget.treeViewID);
|
||||
this.setAddToButton();
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue