mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
Fix pages reorder failing for subsequent changes
This commit is contained in:
parent
3082bfbefb
commit
085cef77a7
18
panel/assets/js/app.min.js
vendored
18
panel/assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -286,8 +286,8 @@ export class Pages {
|
|||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
"csrf-token": ($("meta[name=csrf-token]") as HTMLMetaElement).content,
|
"csrf-token": ($("meta[name=csrf-token]") as HTMLMetaElement).content,
|
||||||
page: (element.children[event.newIndex as number] as HTMLElement).dataset.route,
|
page: event.item.dataset.route,
|
||||||
before: (element.children[event.oldIndex as number] as HTMLElement).dataset.route,
|
before: (event.item.nextElementSibling! as HTMLElement).dataset.route,
|
||||||
parent: element.dataset.parent,
|
parent: element.dataset.parent,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user