Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion jquery.mjs.nestedSortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
protectRoot: false,
rootID: null,
rtl: false,
noSubLevel :false,
isAllowed: function(item, parent) { return true; }
},

Expand Down Expand Up @@ -168,7 +169,7 @@
var newList = document.createElement(o.listType);

this.beyondMaxLevels = 0;
if(o.noSubLevel==false){
// If the item is moved to the left, send it to its parent's level unless there are siblings below it.
if (parentItem != null && nextItem == null &&
(o.rtl && (this.positionAbs.left + this.helper.outerWidth() > parentItem.offset().left + parentItem.outerWidth()) ||
Expand Down Expand Up @@ -198,6 +199,7 @@
else {
this._isAllowed(parentItem, level, level+childLevels);
}
}

//Post events to containers
this._contactContainers(event);
Expand Down