From 395833b940faa3a8272e84a2e3521f6ae6dcecc0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 9 Jul 2010 20:48:10 +0000 Subject: [PATCH] Restore setTimeout() call removed in previous commit --- chrome/content/zotero/bibliography.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index 8a14cd195..34e00d3ca 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -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")) {