BUG disable archived pages from being droppable

Fixes https://github.com/silverstripe/silverstripe-cms/issues/1257
This commit is contained in:
Damian Mooyman 2015-08-24 15:59:59 +12:00
parent d0f94b5363
commit 80ce5498d8

View File

@ -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