finish drag and drop for context list. Works even for webkit :-)

This commit is contained in:
Reinier Balt 2012-01-31 16:51:20 +01:00
parent 4a8fdbabc2
commit c8ab797924
5 changed files with 14 additions and 29 deletions

View file

@ -82,6 +82,12 @@ module TracksStepHelper
end
end
def context_list_find_index(context_name)
div_id = "context_#{@current_user.contexts.find_by_name(context_name).id}"
contexts = page.all("div.context").map { |x| x[:id] }
return contexts.find_index(div_id)
end
end
World(TracksStepHelper)