Add ZoteroPaneOpen command line argument to open Zotero automatically

This commit is contained in:
Dan Stillman 2012-11-10 19:38:22 -05:00
parent 73f775950d
commit 61c36b0523
2 changed files with 14 additions and 0 deletions

View file

@ -240,6 +240,13 @@ var ZoteroPane = new function()
sep.nextSibling.nextSibling.hidden = false;
sep.nextSibling.nextSibling.nextSibling.hidden = false;
}
if (Zotero.openPane) {
Zotero.openPane = false;
setTimeout(function () {
ZoteroPane_Local.show();
}, 0);
}
}

View file

@ -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",