mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Fix PDF tools prompt on pref window open if Search pane not yet loaded
This commit is contained in:
parent
6ea0ac2345
commit
afd14ae4b9
2 changed files with 6 additions and 4 deletions
|
|
@ -43,10 +43,6 @@ var Zotero_Preferences = {
|
|||
if(io.pane) {
|
||||
var pane = document.getElementById(io.pane);
|
||||
document.getElementById('zotero-prefs').showPane(pane);
|
||||
// Quick hack to support install prompt from PDF recognize option
|
||||
if (io.action && io.action == 'pdftools-install') {
|
||||
this.Search.checkPDFToolsDownloadVersion();
|
||||
}
|
||||
}
|
||||
} else if(document.location.hash == "#cite") {
|
||||
document.getElementById('zotero-prefs').showPane(document.getElementById("zotero-prefpane-cite"));
|
||||
|
|
|
|||
|
|
@ -34,6 +34,12 @@ Zotero_Preferences.Search = {
|
|||
this.updatePDFToolsStatus();
|
||||
|
||||
this.updateIndexStats();
|
||||
|
||||
// Quick hack to support install prompt from PDF recognize option
|
||||
var io = window.arguments[0];
|
||||
if (io.action && io.action == 'pdftools-install') {
|
||||
this.checkPDFToolsDownloadVersion();
|
||||
}
|
||||
},
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue