Minor optimization

pull/199/head
Thomas Bruederli 11 years ago
parent f0e4d2fd14
commit 0ebb250164

@ -807,8 +807,8 @@ function rcube_treelist_widget(node, p)
else if (dir < 0 && !from_child && next.children('ul[role=group]:visible').length) {
next.children('ul').children('li:last').find('a:first').focus();
}
else if (next.length && next.find('a:first')) {
next.find('a:first').focus();
else if (next.length && next.find('a:first').focus().length) {
// focused
}
else {
parent = li.parent().closest('li[role=treeitem]');

Loading…
Cancel
Save