Restore setTimeout() call removed in previous commit

This commit is contained in:
Dan Stillman 2010-07-09 20:48:10 +00:00
parent 92383c7f20
commit 395833b940

View file

@ -83,8 +83,11 @@ var Zotero_File_Interface_Bibliography = new function() {
selectIndex = 0;
}
listbox.ensureIndexIsVisible(selectIndex);
listbox.selectedIndex = selectIndex;
// Has to be async to work properly
setTimeout(function () {
listbox.ensureIndexIsVisible(selectIndex);
listbox.selectedIndex = selectIndex;
});
// ONLY FOR bibliography.xul: export options
if(document.getElementById("save-as-rtf")) {