#4657 closed bug (fixed)
Update docs, revert supports a number parameter for animation speed
Reported by: | crankharder | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8 |
Component: | ui.sortable | Version: | 1.7.2 |
Keywords: | revert | Cc: | |
Blocked by: | Blocking: |
Description
Should be self-explanatory:
I'd like to be able to control how fast an option reverts back to its position.
Should act like other jquery speed settings, slow, normal, fast (i think?) or an integer which represents milliseconds.
Change History (4)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Okay -- the docs explicitly state that revert takes a boolean, and the examples show true/false being passed in:
http://docs.jquery.com/UI/API/1.7/Sortable#option-revert
Based on the code above, taken from 1.7.2 that revert actually will take a number and convert that to the animation speed.
Passing revert:100 as an option confirms it as well.
I've no idea if tests support this, but it seems to work in practice... Maybe somebody should update the docs to reflect that?
comment:3 Changed 14 years ago by
Milestone: | TBD → 1.8 |
---|---|
Priority: | minor → major |
Summary: | new sortable option: revertSpeed → Update docs, revert supports a number parameter for animation speed |
Type: | enhancement → bug |
Version: | → 1.7.2 |
Docs need to be updated.
I tracked this down to the animate() function inside of sortable here:
$(this.helper).animate({
});