Fix PDF tools prompt on pref window open if Search pane not yet loaded

This commit is contained in:
Dan Stillman 2013-11-02 02:46:22 -04:00
parent 6ea0ac2345
commit afd14ae4b9
2 changed files with 6 additions and 4 deletions

View file

@ -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"));

View file

@ -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();
}
},
/*