]> projects.mako.cc - selectricity-live/blob - app/views/common/_sortable_vote.rhtml
6876966f0f44dbf6f24aae5aa996c49acfa3e4f7
[selectricity-live] / app / views / common / _sortable_vote.rhtml
1 <div id="sortable_list">
2 <ol id="rankings-list">
3   <% for ranking in @voter.vote.rankings %>
4     <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
5       <%=h ranking.candidate.name.capitalize %></li>
6   <% end %>
7 </ol>
8 </div>
9
10 <div class="clear-div"></div>
11
12 <%= sortable_element 'rankings-list',
13     :url => { :action => "sort_candidates", :id => @voter.vote.id },
14     :complete => visual_effect(:highlight, 'rankings-list') %>
15

Benjamin Mako Hill || Want to submit a patch?