Thomas Bruederli
2014-06-25 0ebb250164cb17a980724f0cf8935c81e12909b9
Minor optimization
1 files modified
4 ■■■■ changed files
program/js/treelist.js 4 ●●●● patch | view | raw | blame | history
program/js/treelist.js
@@ -807,8 +807,8 @@
    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]');