forked from 0x2620/pandora
documents panel: testing
This commit is contained in:
parent
7c77282820
commit
17ecf6da53
1 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue