Comments (1)
Also, if we move to the top level element (the top-most ui-sortable list), parentItem seems to return NULL, which makes it hard to determine what the parent (recipient container) is to see if it's the same container as the original one. It would seem the callback should be passed the root element if that's where it's being put, so I can at least see if that's where it belonged in the first place. Sometimes I don't know what the root element is (such as when there are multiple lists on a page), so I can't rely on having it hardcoded. The callback should be able to reference it itself. The following seems to work, so I never get null for a parentItem.
around line 172 (or so):
this._isAllowed(this.currentItem[0], parentItem?parentItem:this.element, level, level+childLevels);
from nestedsortable.
Related Issues (20)
- Error returning toArray HOT 1
- does expandOnHover and startCollapsed work? HOT 2
- Multiselect possible ?
- Save position HOT 4
- Conflict with Angular
- Cannot put the first child on root
- Cannot put the first child on root
- problem with nesting HOT 9
- [enhancement] Add missing bower.json.
- Angular-NestedSortable
- Add bower/composer support HOT 1
- Incompatibility with jQuery 1.10 and jQuery UI 1.11 HOT 2
- Add item index in toArray
- Items jump up if the window is scrolled down (Please help me) HOT 1
- Uncaught TypeError: Cannot read property 'match' of undefined HOT 1
- Using Nested Sortable in WordPress Admin Sortable box HOT 1
- Relocate event uses element's IDs hardcoded HOT 2
- problem when drag item in long list.
- locked items HOT 2
- How change default rendering of plugin? How to take current information about node after drag and drop? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestedsortable.