Fix updating of Next button in RTFScan (regression from 269e2f8bff
)
And fix a logged warning
This commit is contained in:
parent
e3e6b8ef9c
commit
7306fe910d
1 changed files with 3 additions and 2 deletions
|
@ -428,7 +428,7 @@ var Zotero_RTFScan = new function() {
|
|||
var io = {singleSelection:true};
|
||||
if(citationItemIDs[citation] && citationItemIDs[citation].length == 1) { // mapped citation
|
||||
// specify that item should be selected in window
|
||||
io.select = citationItemIDs[citation];
|
||||
io.select = citationItemIDs[citation][0];
|
||||
}
|
||||
|
||||
window.openDialog('chrome://zotero/content/selectItemsDialog.xul', '', 'chrome,modal', io);
|
||||
|
@ -460,7 +460,8 @@ var Zotero_RTFScan = new function() {
|
|||
*/
|
||||
function _refreshCanAdvance() {
|
||||
var canAdvance = true;
|
||||
for (let itemList of citationItemIDs) {
|
||||
for (let i in citationItemIDs) {
|
||||
let itemList = citationItemIDs[i];
|
||||
if(itemList.length != 1) {
|
||||
canAdvance = false;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue