mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 09:10:12 +01:00
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:
parent
b50a1ce26f
commit
d9d08fac35
5 changed files with 29 additions and 6 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue