Moved files around a bit more.
[selectricity] / app / views / quickvote / _candidate_list.rhtml
old mode 100755 (executable)
new mode 100644 (file)
index f4f1c06..4ec3db8
@@ -1,18 +1,17 @@
-<% %>
 <!-- the list of candidates -->
-<% if @flash[:candlist] %>
+<% if flash[:candidate_names] %>
   <ul>
-  <% for cand in @flash[:candlist] %>
-    <li><%= cand.capitalize %></li>
+  <% for cand in flash[:candidate_names] %>
+    <li><%=h 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')" %>
+                   :complete => "Field.focus('ajax_newcandidate')") do %>
 <p>
   <%= text_field "ajax", "newcandidate", :size => 40 %>
   <%= submit_tag "Add(+)" %>
 </p>
-<%= end_form_tag %>
+<% end %>

Benjamin Mako Hill || Want to submit a patch?