Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit a09c41d

Browse files
Jeremy Mickelsondouglasduteil
Jeremy Mickelson
authored andcommitted
Supported cusotm placeholders by excluding the placeholder based on it's class, not the default ui-sortable-placeholder class. #48
1 parent 074fe90 commit a09c41d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sortable.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ angular.module('ui.sortable', [])
5353
// we can restore it after sortable has messed it up
5454
savedNodes = element.contents().not(
5555
//Don't inlcude the placeholder
56-
element.find('.ui-sortable-placeholder'));
56+
element.find("." + element.sortable('option','placeholder')
57+
.element().attr('class').split(/\s+/).join('.')));
5758
};
5859

5960
callbacks.update = function(e, ui) {

0 commit comments

Comments
 (0)