* Insert a file into the list * @param {HTMLElement} $target * @param {HTMLElement} $tile
($target, $tile)
| 962 | * @param {HTMLElement} $tile |
| 963 | */ |
| 964 | function appendTile($target, $tile) { |
| 965 | $target = $target.nextElementSibling; |
| 966 | const $firstTile = $target.get(":scope>[type=file]"); |
| 967 | if ($firstTile) $target.insertBefore($tile, $firstTile); |
| 968 | else $target.append($tile); |
| 969 | } |
| 970 | |
| 971 | /** |
| 972 | * Insert folder into the list |
no test coverage detected