Skip to content

Commit 3918aec

Browse files
committed
Update pages. See main branch for changes
1 parent d6ce48c commit 3918aec

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

README.mkd

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
# jQuery Sortable
22

3-
jQuery Sortable is a flexible, opinionated sorting plugin. Its aim is to do one thing: sorting
3+
jQuery Sortable is a flexible, opinionated sorting plugin.
4+
It enables items in a list (or table etc.) to be sorted horizontally and vertically using the mouse.
5+
Supports nested lists and pure drag/drop containers.
6+
7+
jQuery Sortable does not depend on jQuery UI and works well with Twitter's Bootstrap (You can even sort the Bootstrap navigation).
8+
9+
More information can be found on [http://johnny.github.com/jquery-sortable/](http://johnny.github.com/jquery-sortable/).
410

511
## Dependencies
612

7-
jquery
13+
jquery (>= 1.7.0)
814

915
## Development Dependencies
1016

11-
See the Gemfile
17+
jQuery Sortable is developed using [middleman](http://middlemanapp.com/).
18+
A **bundle install** shoud pull in everything needed.

index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ <h3>The opinionated part</h3>
123123
.
124124
</p>
125125
<p>
126-
Moreover this plugin assumes, that the placeholder has zero height/width.
127-
This way we can cache the item dimensions.
126+
Moreover this plugin assumes that the placeholder has zero height/width.
127+
As a result, the item dimensions may be cached.
128128
<small>This might change in the future, if need be.</small>
129129
</p>
130130
<h3>Compatibility</h3>
@@ -152,6 +152,11 @@ <h3>
152152
With default options.
153153
</small>
154154
</h3>
155+
<p>
156+
<span class='label label-info'>Heads Up!</span>
157+
There is no on-the-fly creation of sublists.
158+
Only list items that contain a sublist are drop targets.
159+
</p>
155160
<ol class='default vertical'>
156161
<li>First</li>
157162
<li>Second</li>
@@ -314,6 +319,7 @@ <h2>Sort handle and limited drag/drop</h2>
314319
<span class="key">group</span>: <span class="string"><span class="delimiter">'</span><span class="content">no-drop</span><span class="delimiter">'</span></span>,
315320
<span class="key">handle</span>: <span class="string"><span class="delimiter">'</span><span class="content">i.icon-move</span><span class="delimiter">'</span></span>,
316321
<span class="function">onDragStart</span>: <span class="keyword">function</span> (item, container, _super) {
322+
<span class="comment">// Duplicate items of the no drop area</span>
317323
<span class="keyword">if</span>(!container.options.drop)
318324
item.clone().insertAfter(item)
319325
_super(item)

js/application.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,7 @@ $(function() {
16461646
group: 'no-drop',
16471647
handle: 'i.icon-move',
16481648
onDragStart: function (item, container, _super) {
1649+
// Duplicate items of the no drop area
16491650
if(!container.options.drop)
16501651
item.clone().insertAfter(item)
16511652
_super(item)

js/examples/simple_with_no_drop.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $(function() {
33
group: 'no-drop',
44
handle: 'i.icon-move',
55
onDragStart: function (item, container, _super) {
6+
// Duplicate items of the no drop area
67
if(!container.options.drop)
78
item.clone().insertAfter(item)
89
_super(item)

0 commit comments

Comments
 (0)