allow selecting first list item after clicking "Multiple Citations..." button (don't know why this didn't work, and don't know why this fixes it)

This commit is contained in:
Simon Kornblith 2010-06-06 01:25:34 +00:00
parent 5284da05af
commit 15977ba5b1

View file

@ -286,8 +286,8 @@ var Zotero_Citation_Dialog = new function () {
var item = itemsView.getSelectedItems()[0]; // treeview from selectItemsDialog.js
_itemSelected(item.getID());
_addItem(item);
_citationList.selectedIndex = _citationList.getRowCount()-1;
_citationList.focus();
_citationList.selectedIndex = _citationList.getRowCount()-1;
// don't let someone select it again
document.getElementById("add").disabled = true;