开发者

JQueryUI Drag and Drop accept with nested lists

In this nested list example: http://jsfiddle.net/7e2gs/, the accept function on the droppable items is returning the expected value (false, when the droppable is a child item of the draggable).

However, the activeCl开发者_如何学JAVAass is being applied to all the droppables, not just the ones that had the accept function return true.

How do I get the activeClass to be applied only to the items that had the accept function return true?


The problem was with the "IsNotInsideSelf" function.

The returned variable of the function had the same name as the function and was causing the the accept function to behave as if it was not working.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜