mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-30 00:19:25 +02:00
Merge pull request #4531 from tractorcow/pulls/3.2/block-archived-dragdrop
BUG disable archived pages from being droppable
This commit is contained in:
commit
5c5dd7efce
|
@ -178,6 +178,8 @@
|
|||
var isAllowed = (
|
||||
// Don't allow moving the root node
|
||||
movedNode.data('id') !== 0
|
||||
// Archived pages can't be moved
|
||||
&& !movedNode.hasClass('status-archived')
|
||||
// Only allow moving node inside the root container, not before/after it
|
||||
&& (!isMovedOntoContainer || data.p == 'inside')
|
||||
// Children are generally allowed on parent
|
||||
|
|
Loading…
Reference in New Issue
Block a user