@@ -268,6 +268,7 @@ <h2>Connected lists with drop animation</h2>
268268< span class ="predefined "> $</ span > (< span class ="string "> < span class ="delimiter "> "</ span > < span class ="content "> ol.simple_with_animation</ span > < span class ="delimiter "> "</ span > </ span > ).sortable({
269269 < span class ="key "> group</ span > : < span class ="string "> < span class ="delimiter "> '</ span > < span class ="content "> simple_with_animation</ span > < span class ="delimiter "> '</ span > </ span > ,
270270 < span class ="key "> pullPlaceholder</ span > : < span class ="predefined-constant "> false</ span > ,
271+ < span class ="comment "> // animation on drop</ span >
271272 < span class ="function "> onDrop</ span > : < span class ="keyword "> function</ span > (item, targetContainer, _super) {
272273 < span class ="keyword "> var</ span > clonedItem = < span class ="predefined "> $</ span > (< span class ="string "> < span class ="delimiter "> '</ span > < span class ="content "> <li/></ span > < span class ="delimiter "> '</ span > </ span > ).css({< span class ="key "> height</ span > : < span class ="integer "> 0</ span > })
273274 item.before(clonedItem)
@@ -278,6 +279,8 @@ <h2>Connected lists with drop animation</h2>
278279 _super(item)
279280 })
280281 },
282+
283+ < span class ="comment "> // set item relative to cursor position</ span >
281284 < span class ="function "> onDragStart</ span > : < span class ="keyword "> function</ span > (< span class ="predefined "> $item</ span > , container, _super) {
282285 < span class ="keyword "> var</ span > offset = < span class ="predefined "> $item</ span > .offset(),
283286 pointer = container.rootGroup.pointer
@@ -314,7 +317,7 @@ <h2>Connected lists with drop animation</h2>
314317 < strong > above a container</ strong >
315318 </ li >
316319 </ ul >
317- < p > < div data-toggle =" button " class ="btn btn-primary show-code "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
320+ < p > < div class ="btn btn-primary show-code " data-toggle =" button "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
318321 </ div >
319322 < div class ='span4 '>
320323 < ol class ='simple_with_animation vertical '>
@@ -380,7 +383,7 @@ <h2>Sort handle and limited drag/drop</h2>
380383 items on drag
381384 </ li >
382385 </ ul >
383- < p > < div data-toggle =" button " class ="btn btn-primary show-code "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
386+ < p > < div class ="btn btn-primary show-code " data-toggle =" button "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
384387 </ div >
385388 < div class ='span4 '>
386389 < h3 > I'm draggable and droppable</ h3 >
@@ -487,7 +490,7 @@ <h2>Toggable nested lists</h2>
487490 lists
488491 </ li >
489492 </ ul >
490- < p > < div data-toggle =" button " class ="btn btn-primary show-code "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
493+ < p > < div class ="btn btn-primary show-code " data-toggle =" button "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
491494 </ div >
492495 < div class ='span4 '>
493496 < div class ='switch-container '>
@@ -594,7 +597,7 @@ <h2>Connected lists with limited drop targets</h2>
594597 of the lists
595598 </ li >
596599 </ ul >
597- < p > < div data-toggle =" button " class ="btn btn-primary show-code "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
600+ < p > < div class ="btn btn-primary show-code " data-toggle =" button "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
598601 < h3 > Serialize result</ h3 >
599602 < pre id ='serialize_output '> </ pre >
600603 </ div >
795798 to change the sorting behaviour
796799 </ li >
797800 </ ul >
798- < p > < div data-toggle =" button " class ="btn btn-primary show-code "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
801+ < p > < div class ="btn btn-primary show-code " data-toggle =" button "> < i class ="icon-chevron-down "> </ i > show me the code</ div > </ p >
799802 </ div >
800803 < div class ='span4 '>
801804 < h3 > Sortable Rows</ h3 >
0 commit comments