mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 18:50:12 +01:00
Revert "Move dependency drop target into image"
We decided that the small drop target was harder to hit, and the
justifcation for the change wasn't worth it.
This reverts commit ec68e04f27.
Conflicts:
app/helpers/todos_helper.rb
public/javascripts/application.js
public/stylesheets/standard.css
This commit is contained in:
parent
fa98c0865e
commit
86d7724b75
7 changed files with 7 additions and 370 deletions
|
|
@ -229,7 +229,7 @@ function enable_rich_interaction(){
|
|||
/* Drag & Drop for successor/predecessor */
|
||||
function drop_todo(evt, ui) {
|
||||
dragged_todo = ui.draggable[0].id.split('_')[2];
|
||||
dropped_todo = $(this).parents('.item-show').get(0).id.split('_')[2];
|
||||
dropped_todo = this.id.split('_')[2];
|
||||
ui.draggable.remove();
|
||||
$(this).block({message: null});
|
||||
$.post(relative_to_root('todos/add_predecessor'),
|
||||
|
|
@ -247,7 +247,7 @@ function enable_rich_interaction(){
|
|||
start: drag_todo,
|
||||
stop: function() {$('.drop_target').hide();}});
|
||||
|
||||
$('.successor_target').droppable({drop: drop_todo,
|
||||
$('.item-show').droppable({drop: drop_todo,
|
||||
tolerance: 'pointer',
|
||||
hoverClass: 'hover'});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue