From 7cc3d92d65cccf7e09943312b7fa28642372d4c9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 11 Sep 2010 00:03:42 +0000 Subject: #616240 follow-up by yched, dereine, marvil07: Make Field UI screens extensible from contrib - part II. --- misc/tabledrag.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/tabledrag.js b/misc/tabledrag.js index baebfcfd4..867f9c344 100644 --- a/misc/tabledrag.js +++ b/misc/tabledrag.js @@ -1016,8 +1016,11 @@ Drupal.tableDrag.prototype.row.prototype.validIndentInterval = function (prevRow minIndent = nextRow ? $('.indentation', nextRow).size() : 0; // Maximum indentation: - if (!prevRow || $(this.element).is('.tabledrag-root')) { - // Do not indent the first row in the table or 'root' rows.. + if (!prevRow || $(prevRow).is(':not(.draggable)') || $(this.element).is('.tabledrag-root')) { + // Do not indent: + // - the first row in the table, + // - rows dragged below a non-draggable row, + // - 'root' rows. maxIndent = 0; } else { -- cgit v1.2.3