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:
Eric Allen 2010-05-09 18:57:56 -04:00
parent fa98c0865e
commit 86d7724b75
7 changed files with 7 additions and 370 deletions

View file

@ -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'});