X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/e565b1cd14149c5edc0106407f79e4ae12b56f10..108e13f9199648108e61f282a56f9ab4e7bc5dc6:/app/views/quickvote/_candidate_list.rhtml diff --git a/app/views/quickvote/_candidate_list.rhtml b/app/views/quickvote/_candidate_list.rhtml index f4f1c06..76de0ac 100644 --- a/app/views/quickvote/_candidate_list.rhtml +++ b/app/views/quickvote/_candidate_list.rhtml @@ -1,18 +1,18 @@ <% %> -<% if @flash[:candlist] %> +<% if flash[:candidate_names] %> <% 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 %>

<%= text_field "ajax", "newcandidate", :size => 40 %> <%= submit_tag "Add(+)" %>

-<%= end_form_tag %> +<% end %>