* Insert folder into the list * @param {HTMLElement} $target The target element * @param {HTMLElement} $list The tile to be inserted
($target, $list)
| 974 | * @param {HTMLElement} $list The tile to be inserted |
| 975 | */ |
| 976 | function appendList($target, $list) { |
| 977 | $target = $target.nextElementSibling; |
| 978 | const $firstList = $target.firstElementChild; |
| 979 | if ($firstList) $target.insertBefore($list, $firstList); |
| 980 | else $target.append($list); |
| 981 | } |
| 982 | |
| 983 | /** |
| 984 | * Get the active file tree for a folder element, if it has been loaded. |
no test coverage detected