Change document import/export documentation URL
This commit is contained in:
parent
8b778e20db
commit
2af63c0f33
2 changed files with 4 additions and 4 deletions
|
@ -244,7 +244,7 @@ var Zotero_File_Interface_Bibliography = new function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.exportDocument = function() {
|
this.exportDocument = function() {
|
||||||
const importExportWikiURL = "https://www.zotero.org/support/kb/export_import_document";
|
const documentationURL = "https://www.zotero.org/support/kb/word_processor_document_export";
|
||||||
|
|
||||||
var ps = Services.prompt;
|
var ps = Services.prompt;
|
||||||
var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING)
|
var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING)
|
||||||
|
@ -263,7 +263,7 @@ var Zotero_File_Interface_Bibliography = new function() {
|
||||||
_io.exportDocument = true;
|
_io.exportDocument = true;
|
||||||
document.documentElement.acceptDialog();
|
document.documentElement.acceptDialog();
|
||||||
} else if (result == 2) {
|
} else if (result == 2) {
|
||||||
Zotero.launchURL(importExportWikiURL);
|
Zotero.launchURL(documentationURL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1621,7 +1621,7 @@ Zotero.Integration.Session.prototype.exportDocument = async function() {
|
||||||
|
|
||||||
|
|
||||||
Zotero.Integration.Session.prototype.importDocument = async function() {
|
Zotero.Integration.Session.prototype.importDocument = async function() {
|
||||||
const importExportWikiURL = "https://www.zotero.org/support/kb/export_import_document";
|
const documentationURL = "https://www.zotero.org/support/kb/word_processor_document_export";
|
||||||
|
|
||||||
var ps = Services.prompt;
|
var ps = Services.prompt;
|
||||||
var buttonFlags = ps.BUTTON_POS_0 * ps.BUTTON_TITLE_IS_STRING
|
var buttonFlags = ps.BUTTON_POS_0 * ps.BUTTON_TITLE_IS_STRING
|
||||||
|
@ -1638,7 +1638,7 @@ Zotero.Integration.Session.prototype.importDocument = async function() {
|
||||||
throw new Zotero.Exception.UserCancelled("the document import");
|
throw new Zotero.Exception.UserCancelled("the document import");
|
||||||
}
|
}
|
||||||
if (result == 2) {
|
if (result == 2) {
|
||||||
Zotero.launchURL(importExportWikiURL);
|
Zotero.launchURL(documentationURL);
|
||||||
throw new Zotero.Exception.UserCancelled("the document import");
|
throw new Zotero.Exception.UserCancelled("the document import");
|
||||||
}
|
}
|
||||||
Zotero.debug("Integration: Importing the document");
|
Zotero.debug("Integration: Importing the document");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue