mkun
e03656d860
Sometimes evt.from is different from evt.item.parentNode because the item has been moved already so using evt.item.nextSibling won't work when doing evt.from.insertBefore, because nextSibling is not a child of evt.from.
...
So in those cases we use evt.clone.nextSibling instead.
9 years ago
shimizu daisuke
7370f0a8cf
Modified to initialize variables in _onDrop. so destory function does not work well.
9 years ago
Lebedev Konstantin
6952f3b525
Merge pull request #607 from dlamotte/master
...
fix for sorting elements within a non-homogenus list of elements
9 years ago
Dan LaMotte
4facaff715
refactor _matches() out of _closest()
...
The _closest() method already defined a way to do what _matches() was
trying to accomplish. This pulls the functionality out of _closest() so
that it can be reused outside of _closest() but refactors _closest() to
use this new _matches() method.
9 years ago
Dan LaMotte
4c2bd1c287
fix for sorting elements within a non-homogenus list of elements
...
For instance, say you are sorting tbody's within a table element. There
can also exist tfoot and thead within the table element. The _index()
function assumes that the list of elements within the parent is
homogenus (ie: just li's below an ol/ul). This isnt the case when
sorting tbody under table. This is edge case until you want to group
tr's under a table and sort on those groupings.
9 years ago
Lebedev Konstantin
2fe3a25cd3
Merge pull request #645 from davewood/master
...
format comments
9 years ago
David Schmidt
f7bcbddaa3
format comments
9 years ago
Lebedev Konstantin
7c8523713e
Merge pull request #640 from davewood/master
...
add Sortable as dependency for knockout-sortable
9 years ago
Lebedev Konstantin
73f8569005
Merge pull request #643 from gutenye/fix-642
...
fix import polymer readme closes #642
9 years ago
Guten Ye
c17cb275de
fix import polymer readme closes #642
9 years ago
David Schmidt
425aafa8d1
fix commonJS and plain version deps
9 years ago
David Schmidt
b65d326d40
add Sortable as dependency for knockout-sortable
9 years ago
RubaXa
51337f7279
Merge branch 'master' of github.com:RubaXa/Sortable
9 years ago
RubaXa
4701b853fd
v1.4.2: - Polymer dependency (bower)
9 years ago
Lebedev Konstantin
223c9d2385
Merge pull request #611 from cebor/patch-1
...
Remove Polymer from bower dependencies
9 years ago
Felix Itzenplitz
9cf9cee983
Remove Polymer from bower dependencies
9 years ago
RubaXa
40a2f60545
v1.4.1: * React & ko & bower
9 years ago
RubaXa
6f61d145ce
* bump
9 years ago
Lebedev Konstantin
a531e51fd2
Merge pull request #605 from 4imble/master
...
Fix to knockout sorting when dragging item index 1 to 0.
9 years ago
Lebedev Konstantin
282e4598cb
Merge pull request #595 from slavicd/master
...
Allow a custom setState handler on the using component
9 years ago
4imble
5bbabe7c08
Fix to knockout sorting when dragging item index 1 to 0.
...
The items would not swap positions when you dragged item with index 1 to
the top of the stack at index 0.
9 years ago
RubaXa
d0c1226f62
* cs
9 years ago
RubaXa
a793a5e395
v1.4.0: Add Polymer Support ( #600 ); * React v0.14 ( #571 , #572 ); * ng-repeat ( #573 )
9 years ago
RubaXa
f4159a9bc5
Merge branch 'master' into dev
9 years ago
Lebedev Konstantin
3955c3ba82
Merge pull request #600 from gutenye/polymer
...
Add Polymer Support
9 years ago
Guten Ye
82a0c763ff
update README
9 years ago
Guten Ye
221bb3354b
Add Polymer Support
9 years ago
Slavic Dragovtev
d779c3910d
use tabs instead of spaces
9 years ago
Slavic Dragovtev
4ad0653869
use tabs instead of spaces
9 years ago
Slavic Dragovtev
44e1ab8f00
Allow a custom setState handler on the using component
...
Only components having a state are currently working correctly with the sortable mixing. The proposed fix is to allow custom state handling method to be passed in as config.
9 years ago
Lebedev Konstantin
6140e497fb
Merge pull request #579 from RubaXa/possibly-unintended-file
...
Delete log.txt
9 years ago
Dan Dascalescu
0ead812eec
Delete log.txt
...
Should this file be in the repo?
9 years ago
Lebedev Konstantin
1065b9246a
Merge pull request #572 from ChiefORZ/dev
...
more reliable way to get the DOM Node
9 years ago
RubaXa
fc4a9b310f
#573 : * without ng-repeat
9 years ago
ChiefORZ
fa33718d92
more reliable way to get the DOM Node
...
with React v0.14 this.refs.*.getDOMNode() is deprecated,
we have to use this.refs.* instead, to reference the DOM Node.
this is a implementation, that is backward compatible
* misspelled ref in README fixed
* fixed Demo of forceFallback
9 years ago
RubaXa
eaade8c871
Merge branch 'dev' of github.com:RubaXa/Sortable into dev
9 years ago
RubaXa
03764ae535
* shortening
9 years ago
Lebedev Konstantin
36c0768eba
Merge pull request #571 from jquense/jquense-patch-1
...
Add `getContainer` option for better react version support
9 years ago
Jason Quense
1804c39f3f
Add `getContainer` option for better react version support
9 years ago
RubaXa
385f03e5d0
v1.3.0: Improved stability and performance on touch devices; Added a new option `chosenClass`
...
And so on: #558 , #547 , #542 , #537 , #532 , #516 , #500 , #489 , #489 , #447 , #475 , #459 , ##422, #411 , #356
9 years ago
RubaXa
16bf388a81
* callArgs -> args
9 years ago
Lebedev Konstantin
4524cd8ff7
Merge pull request #566 from medonja/master
...
Bugfix in jquery.binding.js
9 years ago
Marko Jovanovic
f7e2c04336
Bugfix in jquery.binding.js
9 years ago
Lebedev Konstantin
3b9b8c9c80
Merge pull request #564 from Ferdaszewski/dev
...
Added Browserify support for ng-sortable
9 years ago
Joshua Ferdaszewski
555adc36fd
Added Browserify support for ng-sortable
9 years ago
Lebedev Konstantin
23bc3b79f2
Merge pull request #562 from fendy3002/patch-1
...
knockout-sortable Remove dom element reference to viemodel and use local variable instead
9 years ago
fendy3002
6c86b334d2
Fix the missing 'var' syntax
...
The var syntax is missing. Added to explicitly define local variable.
9 years ago
fendy3002
70d04f9346
Update knockout-sortable.js
...
Use closure local variable instead of attaching the element to viewmodel. This is to prevent error caused by bound dom element as in issue 559.
https://github.com/RubaXa/Sortable/issues/559
9 years ago
RubaXa
72c62eab60
Merge branch 'dev' of github.com:RubaXa/Sortable into dev
9 years ago
RubaXa
0043e4796e
#558 : + Error initializing
9 years ago