diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index 97c5228d..276743c7 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -750,7 +750,17 @@ pandora.ui.documentsPanel = function(options) { load: function() { listLoaded = true; !ui.showBrowser && $list.gainFocus(); - setTimeout(selectDocuments); + select(); + function select() { + if ( + $list.options('selected').length == 0 + || $list.value($list.options('selected')[0]) + ) { + selectDocuments(); + } else { + setTimeout(select, 100); + } + } } }); }