mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Still show action if it could not be added as predecessor
If it is added as a predecessor, other code takes care to hide the action. For a very short time, barely noticeable, the action is shown moving back to its original position. See pull request #1777
This commit is contained in:
parent
556c68c2e6
commit
73bb53e1e5
1 changed files with 1 additions and 2 deletions
|
@ -301,7 +301,6 @@ var TodoItems = {
|
|||
/* Drag & Drop for successor/predecessor */
|
||||
var dragged_todo = ui.draggable[0].id.split('_')[2];
|
||||
var dropped_todo = this.id.split('_')[2];
|
||||
ui.draggable.remove();
|
||||
$('.drop_target').hide(); // IE8 doesn't call stop() in this situation
|
||||
|
||||
ajax_options = default_ajax_options_for_scripts('POST', relative_to_root('todos/add_predecessor'), $(this));
|
||||
|
@ -324,7 +323,7 @@ var TodoItems = {
|
|||
setup_drag_and_drop: function() {
|
||||
$('.item-show').draggable({
|
||||
handle: '.grip',
|
||||
revert: 'invalid',
|
||||
revert: true,
|
||||
start: TodoItems.drag_todo,
|
||||
stop: function() {
|
||||
$('.drop_target').hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue