Use offsetParent to get the grid cell for the moved item since parents() always returns 0 results

This commit is contained in:
Robert Johnston
2018-08-24 09:50:24 +01:00
parent ef6822e15b
commit 06e55c8c4e

View File

@@ -218,7 +218,7 @@ angular.module("umbraco")
// Fade in control when sorting stops
ui.item.context.style.opacity = "1";
ui.item.parents(".umb-cell-content").find(".mceNoEditor").each(function () {
ui.item.offsetParent().find(".mceNoEditor").each(function () {
if ($.inArray($(this).attr("id"), notIncludedRte) < 0) {
// add all dragged's neighbouring RTEs in the new cell
notIncludedRte.splice(0, 0, $(this).attr("id"));