(cp 25b919390) fixes #2274 load node when moving album in another one

This commit is contained in:
Linty
2024-11-12 11:18:55 +01:00
parent 582ac12e94
commit d982ecb2dc

View File

@@ -716,6 +716,10 @@ function applyMove(event) {
} else if (event.move_info.position == 'inside') {
if (getId(previous_parent) != getId(target)) {
moveParent = getId(target);
const currentNode = $('.tree').tree('getNodeById', moveParent);
if (currentNode && currentNode.load_on_demand && currentNode.haveChildren) {
loadOnDemand(currentNode);
}
}
moveRank = 1;
} else if (event.move_info.position == 'before') {