merged from devel
[selectricity] / app / views / quickvote / _candidate_list.rhtml
index ddb47e53fa7f6a49b707bcecdb530e5ef0dd1a54..9ccb3b1ecb53d2d83011982e1214c2f2ca9b908f 100644 (file)
@@ -1,14 +1,13 @@
-<% %>
 <!-- the list of candidates -->
-<% if flash[:candlist] %>
+<% if flash[:candidate_names] %>
   <ul>
-  <% for cand in flash[:candlist] %>
-    <li><%=h cand.capitalize %></li>
+  <% for cand in flash[:candidate_names] %>
+    <li><%= white_list(cand.capitalize) %></li>
   <% end %>
   </ul>
 <% end %>
 
-<% form_remote_tag(:update => 'candlist',
+<% form_remote_tag(:update => 'candidate_names',
                     :url => { :action => 'add_candidate' },
                    :complete => "Field.focus('ajax_newcandidate')") do %>
 <p>

Benjamin Mako Hill || Want to submit a patch?