Various improvements to context drag&drop

-Don't botch other fields on context change
-Better status message
-Flash context title on drop
-Drop target close to context name
-Bolder drop target border

Closes #1033
This commit is contained in:
Eric Allen 2010-05-17 11:36:41 -04:00
parent b50a1ce26f
commit d9d08fac35
5 changed files with 29 additions and 6 deletions

View file

@ -259,9 +259,8 @@ function enable_rich_interaction(){
ui.draggable.remove();
target.block({message: null});
setTimeout(function() {target.show()}, 0);
$.post(relative_to_root('todos/update'),
{id: dragged_todo,
"todo[id]": dragged_todo,
$.post(relative_to_root('todos/change_context'),
{"todo[id]": dragged_todo,
"todo[context_id]": context_id},
function(){target.unblock(); target.hide();}, 'script');
}