Add a warning dialog for an outdated doc template

This commit is contained in:
Adomas Venčkauskas 2021-02-10 11:31:06 +02:00 committed by Dan Stillman
parent 0fc9037a54
commit 50dae87b07
4 changed files with 66 additions and 6 deletions

View file

@ -535,8 +535,10 @@ ZoteroCommandLineHandler.prototype = {
var command = cmdLine.handleFlagWithParam("ZoteroIntegrationCommand", false);
var docId = cmdLine.handleFlagWithParam("ZoteroIntegrationDocument", false);
var templateVersion = parseInt(cmdLine.handleFlagWithParam("ZoteroIntegrationTemplateVersion", false));
templateVersion = isNaN(templateVersion) ? 0 : templateVersion;
zContext.Zotero.Integration.execCommand(agent, command, docId);
zContext.Zotero.Integration.execCommand(agent, command, docId, templateVersion);
}
// handler for Windows IPC commands