mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
fixes #2274 load node when moving album in another one
This commit is contained in:
parent
7bb3994fc6
commit
25b919390e
1 changed files with 4 additions and 0 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue