X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/103b2b07ab5aa50e160b289a0a76d95356353edc..f2ac11cbeb49cbccd62da51c31e14a8de1a6d26c:/app/views/common/_sortable_vote.rhtml diff --git a/app/views/common/_sortable_vote.rhtml b/app/views/common/_sortable_vote.rhtml index f026c42..75bb22f 100644 --- a/app/views/common/_sortable_vote.rhtml +++ b/app/views/common/_sortable_vote.rhtml @@ -1,6 +1,6 @@
    - <% for ranking in @voter.vote.rankings %> + <% for ranking in @voter.vote.rankings.sort %>
  1. <%= white_list(ranking.candidate.name.capitalize) %>
  2. <% end %> @@ -11,5 +11,6 @@ <%= sortable_element 'rankings-list', :url => { :action => "sort_candidates", :id => @voter.vote.id }, + :method => "get", :complete => visual_effect(:highlight, 'rankings-list') %>