forked from 0x2620/pandora
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() {
|
||||
listLoaded = true;
|
||||
!ui.showBrowser && $list.gainFocus();
|
||||
select();
|
||||
function select() {
|
||||
if (
|
||||
$list.options('selected').length == 0
|
||||
|| $list.value($list.options('selected')[0])
|
||||
) {
|
||||
if ($list.options('selected').length == 0) {
|
||||
selectDocuments()
|
||||
} else {
|
||||
selectDocumentsLater();
|
||||
}
|
||||
function selectDocumentsLater() {
|
||||
if ($list.value($list.options('selected')[0])) {
|
||||
selectDocuments();
|
||||
} else {
|
||||
setTimeout(select, 100);
|
||||
setTimeout(selectDocumentsLater, 100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue