[BUGFIX] Move page correctly when droping page before another one 09/57809/3
authorPaweł Rogowicz <rogowicz.pawel@gmail.com>
Sat, 4 Aug 2018 16:57:24 +0000 (18:57 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sun, 5 Aug 2018 08:06:26 +0000 (10:06 +0200)
commit96e3bbe7b7e1d99c5accd22aafc9fe4ecc57e267
treebff8bc4dd037f1afb95b3476a72d9fdda87b143f
parent932cf61cf435929bd16909ab43a232adecc2518c
[BUGFIX] Move page correctly when droping page before another one

Fixes an issue where drag and dropping page before a another one didn't
detect the previous page correctly. DataHandler always expect
us to put a node AFTER. So when we want to place a page before, we need
to find previous page and put the new on after it.

Now it correctly compares depth of the node mouse is over with a previous
node. Before it took a dragged node depth for a comparison, which was wrong.

Releases: master
Resolves: #84008
Change-Id: Ic43be1147a5bb0fc1e15943a5d9e235d10727a07
Reviewed-on: https://review.typo3.org/57809
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Kummer <typo3@enobe.de>
Tested-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeDragDrop.js