documents panel: testing

This commit is contained in:
rolux 2014-11-21 16:04:54 +00:00
parent 7c77282820
commit 17ecf6da53

View file

@ -750,7 +750,17 @@ pandora.ui.documentsPanel = function(options) {
load: function() { load: function() {
listLoaded = true; listLoaded = true;
!ui.showBrowser && $list.gainFocus(); !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);
}
}
} }
}); });
} }