Browse Source

Add demo of disabling sort within list

pull/135/head
Dan Dascalescu 10 years ago
parent
commit
43329a0bd2
  1. 5
      index.html

5
index.html

@ -123,7 +123,7 @@
</div> </div>
<div style="width: 25%; float: left; margin-top: 15px; margin-left: 10px" class="block__list block__list_words"> <div style="width: 25%; float: left; margin-top: 15px; margin-left: 10px" class="block__list block__list_words">
<div class="block__list-title">only pull (clone)</div> <div class="block__list-title">only pull (clone), no reordering</div>
<ul id="advanced-2"> <ul id="advanced-2">
<li>Sex</li> <li>Sex</li>
<li>Drugs</li> <li>Drugs</li>
@ -334,7 +334,8 @@ var editableList = new Sortable(editable, {
{ {
name: 'advanced', name: 'advanced',
pull: 'clone', pull: 'clone',
put: false put: false,
sort: false
}, { }, {
name: 'advanced', name: 'advanced',
pull: false, pull: false,

Loading…
Cancel
Save