Force description when submitting a recognizer report (#1547)
This commit is contained in:
parent
8d8410ffa0
commit
51996b537d
1 changed files with 11 additions and 6 deletions
|
@ -4672,12 +4672,17 @@ var ZoteroPane = new function()
|
|||
if(!items.length) return;
|
||||
|
||||
let input = {value: ''};
|
||||
Services.prompt.prompt(
|
||||
null,
|
||||
Zotero.getString('recognizePDF.reportMetadata'),
|
||||
Zotero.getString('general.describeProblem'),
|
||||
input, null, {}
|
||||
);
|
||||
let confirmed;
|
||||
do {
|
||||
confirmed = Services.prompt.prompt(
|
||||
null,
|
||||
Zotero.getString('recognizePDF.reportMetadata'),
|
||||
Zotero.getString('general.describeProblem'),
|
||||
input, null, {}
|
||||
);
|
||||
} while(confirmed && !input.value);
|
||||
|
||||
if(!confirmed) return;
|
||||
|
||||
try {
|
||||
await Zotero.RecognizePDF.report(items[0], input.value);
|
||||
|
|
Loading…
Reference in a new issue