Skip to content

Commit abb82e3

Browse files
committed
Update pages. See main branch for changes
1 parent b2ab7b7 commit abb82e3

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h1>jQuery Sortable</h1>
7878
<a class='btn btn-large btn-success' href='js/jquery-sortable.js'>
7979
<i class='icon-hdd icon-white'></i>
8080
Download
81-
(v0.9.1)
81+
(v0.9.2)
8282
</a>
8383
</p>
8484
<p>
@@ -145,6 +145,7 @@ <h3>Compatibility</h3>
145145
<ul>
146146
<li>Firefox >= 3.5</li>
147147
<li>Chrome</li>
148+
<li>Opera</li>
148149
<li>Konqueror</li>
149150
<li>IE > 7</li>
150151
</ul>
@@ -886,7 +887,7 @@ <h2 id='group-options'>Group options</h2>
886887
</td>
887888
<td>
888889
<div class="CodeRay">
889-
<div class="code"><pre><span class="keyword">function</span> (item, group, _super) {
890+
<div class="code"><pre><span class="keyword">function</span> (item, container, _super) {
890891
item.css({
891892
<span class="key">height</span>: item.height(),
892893
<span class="key">width</span>: item.width()
@@ -897,7 +898,7 @@ <h2 id='group-options'>Group options</h2>
897898
</div>
898899

899900
</td>
900-
<td> Called after the drag has been started, that is the mouse button is beeing held down and the mouse is moving</td>
901+
<td> Called after the drag has been started, that is the mouse button is beeing held down and the mouse is moving. The container is the closest initialized container. Therefore it might not be the container, that actually contains the item.</td>
901902
</tr><tr><td>
902903
<code>onDrop</code>
903904
</td>

js/application.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ colors = jQuery.Color.names = {
10821082

10831083
}(window.jQuery);
10841084
/* ===================================================
1085-
* jquery-sortable.js v0.9.1
1085+
* jquery-sortable.js v0.9.2
10861086
* http://johnny.github.com/jquery-sortable/
10871087
* ===================================================
10881088
* Copyright (c) 2012 Jonas von Andrian
@@ -1145,8 +1145,10 @@ colors = jQuery.Color.names = {
11451145
},
11461146
// Called after the drag has been started,
11471147
// that is the mouse button is beeing held down and
1148-
// the mouse is moving
1149-
onDragStart: function (item, group, _super) {
1148+
// the mouse is moving.
1149+
// The container is the closest initialized container.
1150+
// Therefore it might not be the container, that actually contains the item.
1151+
onDragStart: function (item, container, _super) {
11501152
item.css({
11511153
height: item.height(),
11521154
width: item.width()
@@ -1458,7 +1460,7 @@ colors = jQuery.Color.names = {
14581460
lastPointer),
14591461
rootGroup = this.rootGroup
14601462
if(!nearest)
1461-
rootGroup.movePlaceholder(this.el, "append")
1463+
rootGroup.movePlaceholder(this, this.el, "append")
14621464
else {
14631465
var index = nearest[0],
14641466
distance = nearest[1]

js/jquery-sortable-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery-sortable.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* ===================================================
2-
* jquery-sortable.js v0.9.1
2+
* jquery-sortable.js v0.9.2
33
* http://johnny.github.com/jquery-sortable/
44
* ===================================================
55
* Copyright (c) 2012 Jonas von Andrian
@@ -62,8 +62,10 @@
6262
},
6363
// Called after the drag has been started,
6464
// that is the mouse button is beeing held down and
65-
// the mouse is moving
66-
onDragStart: function (item, group, _super) {
65+
// the mouse is moving.
66+
// The container is the closest initialized container.
67+
// Therefore it might not be the container, that actually contains the item.
68+
onDragStart: function (item, container, _super) {
6769
item.css({
6870
height: item.height(),
6971
width: item.width()
@@ -375,7 +377,7 @@
375377
lastPointer),
376378
rootGroup = this.rootGroup
377379
if(!nearest)
378-
rootGroup.movePlaceholder(this.el, "append")
380+
rootGroup.movePlaceholder(this, this.el, "append")
379381
else {
380382
var index = nearest[0],
381383
distance = nearest[1]

0 commit comments

Comments
 (0)