Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #173
- Loading branch information
Jonas von Andrian
authored and
Jonas von Andrian
committed
Jun 27, 2015
1 parent
74a7100
commit 0f9f239
Showing
14 changed files
with
109 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,37 @@ | ||
[0.9.13] fix hovering over empty container (Jonny Gerig Meyer) | ||
allow custom drag classes (Jonny Gerig Meyer) | ||
support text areas inside sortables (Isaac Kearse) | ||
fix drag with placeholder issue (Michael McLaughlin) | ||
user outer dimensions for dragged item (Jared Mellentine) | ||
support npm and bower (Patrick Gunderson, Shaun Dern) | ||
fix issue with legacy jQuery 1.10 | ||
fix for mobile chrome | ||
|
||
[0.9.12] expose mouse events in callbacks | ||
add refresh method | ||
add destroy method | ||
add delay option | ||
falsy return value in onMousedown prevents dragging | ||
fix exclusion of items | ||
fix ignore for select element (abixalmon) | ||
fix touch events (prateekjadhwani) | ||
fix itemPath issues (appending and dragInit) | ||
improve documentation | ||
add refresh method | ||
add destroy method | ||
add delay option | ||
falsy return value in onMousedown prevents dragging | ||
fix exclusion of items | ||
fix ignore for select element (abixalmon) | ||
fix touch events (prateekjadhwani) | ||
fix itemPath issues (appending and dragInit) | ||
improve documentation | ||
[0.9.11] option tolerance accepts negative values | ||
rewrote enable/disable logic | ||
added (item|container)Path | ||
rewrote enable/disable logic | ||
added (item|container)Path | ||
|
||
[0.9.10]Fix Array.indexOf() error in IE < 9 (Dev-Speranza) | ||
serialize() assumes one subcontainer per item | ||
remove call to stopPropagation() | ||
Added onMousedown() | ||
[0.9.10] Fix Array.indexOf() error in IE < 9 (Dev-Speranza) | ||
serialize() assumes one subcontainer per item | ||
remove call to stopPropagation() | ||
Added onMousedown() | ||
|
||
[0.9.9] Added options tolerance and distance | ||
Do not modify Array.prototype (by Joakin) | ||
serialize respects exclude option | ||
Do not modify Array.prototype (by Joakin) | ||
serialize respects exclude option | ||
|
||
[0.9.8] Added Serialization | ||
Added onCancel | ||
Added onCancel | ||
|
||
[0.9.7] Support iFrame and Touch events | ||
Better behavior if the CSS position changes | ||
Better behavior if the CSS position changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
$(function () { | ||
$("ol.example").sortable() | ||
}) | ||
$("ol.example").sortable(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
$(function () { | ||
var oldContainer | ||
var oldContainer; | ||
$("ol.nested_with_switch").sortable({ | ||
group: 'nested', | ||
afterMove: function (placeholder, container) { | ||
if(oldContainer != container){ | ||
if(oldContainer) | ||
oldContainer.el.removeClass("active") | ||
container.el.addClass("active") | ||
oldContainer.el.removeClass("active"); | ||
container.el.addClass("active"); | ||
|
||
oldContainer = container | ||
oldContainer = container; | ||
} | ||
}, | ||
onDrop: function ($item, container, _super) { | ||
container.el.removeClass("active") | ||
_super($item, container) | ||
container.el.removeClass("active"); | ||
_super($item, container); | ||
} | ||
}) | ||
}); | ||
|
||
$(".switch-container").on("click", ".switch", function (e) { | ||
var method = $(this).hasClass("active") ? "enable" : "disable" | ||
$(e.delegateTarget).next().sortable(method) | ||
}) | ||
}) | ||
var method = $(this).hasClass("active") ? "enable" : "disable"; | ||
$(e.delegateTarget).next().sortable(method); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
$(function () { | ||
var adjustment | ||
var adjustment; | ||
|
||
$("ol.simple_with_animation").sortable({ | ||
group: 'simple_with_animation', | ||
pullPlaceholder: false, | ||
// animation on drop | ||
onDrop: function ($item, container, _super) { | ||
var $clonedItem = $('<li/>').css({height: 0}) | ||
$item.before($clonedItem) | ||
$clonedItem.animate({'height': $item.height()}) | ||
var $clonedItem = $('<li/>').css({height: 0}); | ||
$item.before($clonedItem); | ||
$clonedItem.animate({'height': $item.height()}); | ||
|
||
$item.animate($clonedItem.position(), function () { | ||
$clonedItem.detach() | ||
_super($item, container) | ||
}) | ||
$clonedItem.detach(); | ||
_super($item, container); | ||
}); | ||
}, | ||
|
||
// set $item relative to cursor position | ||
onDragStart: function ($item, container, _super) { | ||
var offset = $item.offset(), | ||
pointer = container.rootGroup.pointer | ||
pointer = container.rootGroup.pointer; | ||
|
||
adjustment = { | ||
left: pointer.left - offset.left, | ||
top: pointer.top - offset.top | ||
} | ||
}; | ||
|
||
_super($item, container) | ||
_super($item, container); | ||
}, | ||
onDrag: function ($item, position) { | ||
$item.css({ | ||
left: position.left - adjustment.left, | ||
top: position.top - adjustment.top | ||
}) | ||
}); | ||
} | ||
}) | ||
}) | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters