Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e75be5d

Browse files
committed
Finally fixed some child depth bugs relating to a poor understanding of the selector API
1 parent 059d7df commit e75be5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.nestedsortable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ $.fn.nestedSortable = function(settings) {
6666
}
6767
});
6868
$this.data("maxChildDepth", maxChildDepth);
69-
console.log("Max Child Depth: " + maxChildDepth);
7069
}
7170

7271
$this.removeClass("longnonsensicalclassnamethatnobodywouldeveruse");
@@ -163,7 +162,8 @@ $.fn.nestedSortable = function(settings) {
163162
stop: function(event, ui) {
164163

165164
// Replace the placeholder with the original
166-
$placeholder.after($this.show()).remove();
165+
$placeholder.after($this.show());
166+
$placeholder.remove();
167167

168168
// Re-enable text selection
169169
if (settings.disableSelect) {

0 commit comments

Comments
 (0)