Add ZoteroPaneOpen command line argument to open Zotero automatically
This commit is contained in:
parent
73f775950d
commit
61c36b0523
2 changed files with 14 additions and 0 deletions
|
@ -240,6 +240,13 @@ var ZoteroPane = new function()
|
||||||
sep.nextSibling.nextSibling.hidden = false;
|
sep.nextSibling.nextSibling.hidden = false;
|
||||||
sep.nextSibling.nextSibling.nextSibling.hidden = false;
|
sep.nextSibling.nextSibling.nextSibling.hidden = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Zotero.openPane) {
|
||||||
|
Zotero.openPane = false;
|
||||||
|
setTimeout(function () {
|
||||||
|
ZoteroPane_Local.show();
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -409,6 +409,13 @@ ZoteroCommandLineHandler.prototype = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// handler to open Zotero pane at startup in Zotero for Firefox
|
||||||
|
else {
|
||||||
|
var zPaneOpen = cmdLine.handleFlag("ZoteroPaneOpen", false);
|
||||||
|
if (zPaneOpen) {
|
||||||
|
this.Zotero.openPane = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=zotero",
|
contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=zotero",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue