www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 395833b940faa3a8272e84a2e3521f6ae6dcecc0
parent 92383c7f20ea2a866c1bef0fc1740366ae9df9ce
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  9 Jul 2010 20:48:10 +0000

Restore setTimeout() call removed in previous commit


Diffstat:
Mchrome/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 @@ -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")) {