documents panel: testing
This commit is contained in:
parent
17ecf6da53
commit
3aadc0f513
1 changed files with 8 additions and 7 deletions
|
@ -750,15 +750,16 @@ pandora.ui.documentsPanel = function(options) {
|
||||||
load: function() {
|
load: function() {
|
||||||
listLoaded = true;
|
listLoaded = true;
|
||||||
!ui.showBrowser && $list.gainFocus();
|
!ui.showBrowser && $list.gainFocus();
|
||||||
select();
|
if ($list.options('selected').length == 0) {
|
||||||
function select() {
|
selectDocuments()
|
||||||
if (
|
} else {
|
||||||
$list.options('selected').length == 0
|
selectDocumentsLater();
|
||||||
|| $list.value($list.options('selected')[0])
|
}
|
||||||
) {
|
function selectDocumentsLater() {
|
||||||
|
if ($list.value($list.options('selected')[0])) {
|
||||||
selectDocuments();
|
selectDocuments();
|
||||||
} else {
|
} else {
|
||||||
setTimeout(select, 100);
|
setTimeout(selectDocumentsLater, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue